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

다운로드
페이지 113
eZ430-Chronos Software Projects
www.ti.com
3.
Locating the RF access point
This function checks the Windows registry for the friendly name "TI CC1111 Low-Power RF to USB
CDC Serial Port" and returns the COM port number if the device was found.
bool BM_GetCOM(unsigned char& bPortNb);
Parameters
bPortNb
Number of the COM port (for example, „11")
Return Value
Returns true if device was found, otherwise returns false.
4. Resetting the RF access point
After power-up, the hardware is not automatically reset. Use the following function to initialize the RF
access point hardware. This function can also be used during normal operation if an error condition
was detected.
bool BM_Reset(void);
Return Value
Returns true if RF access point could be initialized successfully and false if the reset failed.
5. Read status from RF access point
This command returns the current RF access point status.
bool BM_GetStatus(WORD& wStatus);
Parameters
wStatus
Current status of RF access point HW_IDLE, HW_SIMPLICITI_STOPPED,
HW_SIMPLICITI_TRYING_TO_LINK, HW_SIMPLICITI_LINKED, HW_BLUEROBIN_STOPPED,
HW_BLUEROBIN_TRANSMITTING, HW_ERROR, HW_NO_ERROR, HW_NOT_CONNECTED
Return Value
Returns true if command could be executed and false if the command execution failed.
BlueRobin Functions
1. Set BlueRobin Heart Rate
This command sets the heart rate value that is transmitted in each BlueRobin packet.
bool BM_BR_SetHeartrate(WORD wHeartrate);
Parameters
wHeartrate
Heart rate in bpm
Return Value
Returns true if command could be executed and false if the command execution failed.
2. Set BlueRobin ID
This command sets the transmitter ID for BlueRobin transmission.
bool BM_BR_SetID(DWORD dwID);
Parameters
dwID
24-bit transmitter ID
Return Value
Returns true if command could be executed and false if the command execution failed.
58
eZ430-Chronos Software
SLAU292D – November 2009 – Revised March 2011
© 2009–2011, Texas Instruments Incorporated