28.05.2013 Views

Overview - Toshiba Electronics Europe

Overview - Toshiba Electronics Europe

Overview - Toshiba Electronics Europe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bluetooth Baseband LSI TC35661 (Chiron)<br />

Embedded SPP Software Stack<br />

Application Note<br />

Rel 1.0 December 2012<br />

TEE/ELDEC Application Engineering<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


<strong>Toshiba</strong> Embedded SPP Software Stack<br />

Benefits<br />

Easy to use High-Level<br />

SPP API for Chiron setup,<br />

connect and data transfer<br />

Driver layer providing<br />

access to the entire<br />

function set of Chiron<br />

SPP application example<br />

on <strong>Toshiba</strong> CortexM3 MCU<br />

with FreeRTOS TM<br />

integration<br />

2<br />

Application<br />

SPP API<br />

Driver<br />

SPP HCI MNG<br />

Tx<br />

Handler<br />

UART Driver<br />

Response/Event<br />

Handler<br />

Bluetooth LSI TC35661<br />

FreeRTOS TM is a trade mark of Real Time Engineers Ltd<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012<br />

FreeRTOS


Chiron SPP (High-Level) APIs<br />

BT_OS_init<br />

BT_HCI_init<br />

BT_spp_discover_remote_device<br />

BT_spp_discover_remote_service<br />

BT_spp_connect_remote_device<br />

BT_spp_disconnect<br />

BT_spp_send<br />

BT_spp_shutdown<br />

Sufficient for communication with a remote SPP device<br />

Bluetooth SPP<br />

Device<br />

3<br />

SPP API<br />

Driver<br />

SPP HCI MNG<br />

Tx<br />

Handler<br />

UART Driver<br />

Response/Event<br />

Handler<br />

tcu_event<br />

hci_event<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


Chiron SPP Driver<br />

TCU_SPP_SETUP_REQ<br />

TCU_SPP_SHUTDOWN_REQ<br />

TCU_SPP_CONNECT_REQ<br />

TCU_SPP_DISCONNECT_REQ<br />

TCU_SPP_DATA_TRANSFER_REQ<br />

TCU_SPP_UUID_ASSIGN_REQ<br />

4<br />

SPP API<br />

Driver<br />

SPP HCI MNG<br />

Tx<br />

Handler<br />

UART Driver<br />

Response/Event<br />

Handler<br />

tcu_SPP_SETUP_RESP<br />

tcu_SPP_SHUTDOWN_RESP<br />

tcu_SPP_CONNECT_EVENT<br />

tcu_SPP_DISCONNECT_EVENT<br />

tcu_SPP_LINE_NOTIFY_EVENT<br />

tcu_SPP_DATA_RECEIVE_EVENT<br />

tcu_SPP_DATA_SEND_EVENT<br />

tcu_SPP_UUID_ASSIGN_RESP<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


Chiron MNG Driver<br />

tcu_MNG_INIT_REQ<br />

tcu_MNG_SET_SCAN_REQ<br />

tcu_MNG_CONNECTION_ACCEPT_REQ<br />

tcu_MNG_DISCOVER_REMOTE_DEV...<br />

tcu_MNG_SSP_SET_REQ<br />

tcu_MNG_CHANGE_LOCAL_DEV...<br />

tcu_MNG_PIN_WRITE_REQ<br />

5<br />

SPP API<br />

Driver<br />

SPP HCI MNG<br />

Tx<br />

Handler<br />

UART Driver<br />

Response/Event<br />

Handler<br />

TCU_MNG_INIT_RESP<br />

TCU_MNG_SET_SCAN_RESP<br />

TCU_MNG_DISCOVER_REMOTE_...<br />

TCU_MNG_SSP_SET_RESP<br />

TCU_MNG_CONNECTION_ACCEPT..<br />

TCU_MNG_PIN_WRITE_RESP<br />

TCU_MNG_CHANGE_LOCAL_DEV...<br />

TCU_MNG_CHANGE_LOCAL_DEV<br />

TCU_MNG_CHANGE_LOCAL_DEV...<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


Chiron HCI Driver<br />

hci_RESET<br />

hci_Get_Version<br />

hci_M2_SET_DeepSleep<br />

hci_SET_MODE<br />

hci_Write_BD_ADDR<br />

6<br />

SPP API<br />

Driver<br />

SPP HCI MNG<br />

Tx<br />

Handler<br />

UART Driver<br />

Response/Event<br />

Handler<br />

HCI_EVENT_RESET<br />

HCI_GETTING_FIRMWARE_VERSION<br />

HCI_SET_MODE<br />

HCI_WRITE_BD_ADDR<br />

HCI_M2_DEEP_SLEEP_SET<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


SPP Software Stack - Deliverables<br />

Documentation<br />

SPP API Specification<br />

SPP Driver Specification<br />

SPP Application Note<br />

Software<br />

SPP Application example source code<br />

SPP API as source code<br />

SPP drivers as source code<br />

Project files for <strong>Toshiba</strong> TMPM395 MCU<br />

7<br />

© <strong>Toshiba</strong> <strong>Electronics</strong> <strong>Europe</strong> GmbH 2012


Legal Disclaimer<br />

The information contained herein is subject to change without notice. The information contained herein is presented only as a guide for the applications<br />

and products. No responsibility is assumed by <strong>Toshiba</strong> for any infringements of patents or other rights of the third parties which may result from its use.<br />

No license is granted by implication or otherwise und any patent or patent rights of <strong>Toshiba</strong> or others. <strong>Toshiba</strong> is continually working to improve the<br />

quality and reliability of its products. Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and<br />

vulnerability to physical stress. It‘s the responsibility of the buyer, when utilizing <strong>Toshiba</strong> products, to comply with the standards of safety in making a<br />

safe design for the entire system, and to avoid situations in which a malfunction or failure of such <strong>Toshiba</strong> products could cause loss of human life, bodily<br />

injury or damage to property. In developing your designs, please ensure that <strong>Toshiba</strong> products are used within specified operating ranges as set forth in<br />

the most recent <strong>Toshiba</strong> product specifications. Also, please keep in mind the precautions and conditions set forth in the „Handling guide for<br />

Semiconductor devices“, or the „<strong>Toshiba</strong> Semiconductor Reliability Handbook“, etc.. The <strong>Toshiba</strong> products listed in this document are intended for usage<br />

in general electronic applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances etc.).<br />

These <strong>Toshiba</strong> products are neither intended nor warranted for usage in equipment that requires extraordinary high quality and/or reliability or a<br />

malfunction or failure of which my cause loss of human life or bodily injury („Unintended usage“). Unintended usage include atomic energy control<br />

instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical<br />

instruments, all types of safety devices etc... Unintended Usage of <strong>Toshiba</strong> products listed in this document shall be made at the customer’s own risk.<br />

The products described in this document may include products subject to the foreign exchange and foreign trade laws. <strong>Toshiba</strong> does not take any<br />

responsibility for incidental damage (including loss of business profit, business interruption, loss of business information, and other pecuniary damage)<br />

arising out of the use or disability to use the product.<br />

8


9<br />

© <strong>Toshiba</strong> Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!