Texas Instruments EZ430-CHRONOS-868 사용자 설명서

다운로드
페이지 113
eZ430-Chronos Software Projects
www.ti.com
4.
Read SimpliciTI acc/ppt data
This command reads the received data from the RF access point buffer.
bool BM_SPL_GetData(DWORD& wData);
Parameters
wData
4 byte data (byte3, byte2, byte1, byte0)
byte3 = Acceleration value Z-axis
byte2 = Acceleration value Y-axis
byte1 = Acceleration value X-axis
byte0 = 0x11
Left mouse click (acc mode)
byte0 = 0x21
Left mouse double-click (acc mode)
byte0 = 0x31
Right mouse click (acc mode)
byte0 = 0x12
Button * (ppt mode)
byte0 = 0x22
Button # (ppt mode)
byte0 = 0x32
Button
(ppt mode)
byte0 = 0xFF
Data has been read before
Return Value
Returns true if command could be executed and false if the command execution failed.
5. Read SimpliciTI sync buffer status
This command reads the buffer status during sync mode from the RF access point buffer.
bool BM_SYNC_GetBufferStatus(WORD& wStatus);
Parameters
wStatus
Buffer status
0 = Buffer empty
1 = Data available for download
Return Value
Returns true if command could be executed and false if the command execution failed.
6. Read SimpliciTI sync buffer
This command reads the buffer content during sync mode.
bool BM_SYNC_ReadBuffer(BYTE * bData);
Parameters
bData
19-byte SimpliciTI data Packet content defined watch sending routine
Return Value
Returns true if command could be executed and false if the command execution failed.
Wireless Update Functions
1. Start wireless update
This command starts SimpliciTI in acc/ppt mode.
BR_COMM_API bool BM_WBSL_Start(void)
Return Value
Returns true if command could be executed and false if the command execution failed.
2. Stop wireless update
This command exits the SimpliciTI stack.
BR_COMM_API bool BM_WBSL_Stop(void)
Return Value
Returns true if command could be executed and false if the command execution failed.
60
eZ430-Chronos Software
SLAU292D – November 2009 – Revised March 2011
© 2009–2011, Texas Instruments Incorporated