1 #ifndef __BCA_ANTCALLBACKINTERFACE_H__
2 #define __BCA_ANTCALLBACKINTERFACE_H__
15 BCA_LIB_API
void* BCA_OpenDevice(
unsigned char device_no = 0);
17 BCA_LIB_API
int BCA_Init(
void* antDevice);
19 BCA_LIB_API
void BCA_RegisterSendFunc(
void* antDevice,
20 void (*func)(
void* context,
unsigned char channel,
void* cookie),
23 BCA_LIB_API
void BCA_RegisterReceiveFunc(
void* antDevice,
24 void (*func)(
void* context,
unsigned char channel,
unsigned char event,
25 void* data,
unsigned int length,
void* cookie),
void* cookie);
27 BCA_LIB_API
void BCA_RegisterEventFunc(
void* antDevice,
28 void (*func)(
void* context,
unsigned char channel,
unsigned char event,
void* data,
void* cookie),
32 BCA_LIB_API
int BCA_OpenChannel(
void* antDevice,
33 unsigned char channel_no,
34 unsigned char channel_type,
36 unsigned short device_no,
37 unsigned char device_type,
38 unsigned char trans_type,
42 BCA_LIB_API
int BCA_CloseChannel(
void* antDevice,
43 unsigned char channel_no);
45 BCA_LIB_API
int BCA_SendData(
void* antDevice,
46 unsigned char channel_no,
50 BCA_LIB_API
int BCA_SendAcknowledgedData(
void* antDevice,
51 unsigned char channel_no,
55 BCA_LIB_API
int BCA_SendBurstTransfer(
void* antDevice,
56 unsigned char channel_no,
60 BCA_LIB_API
int BCA_Reset(
void* antDevice);
62 BCA_LIB_API
int BCA_CloseDevice(
void* antDevice);
64 BCA_LIB_API
int BCA_SetTransmitPower(
void* antDevice,
67 BCA_LIB_API
int BCA_SetChannelTxPower(
void* antDevice,
68 unsigned char channel_no,
75 BCA_LIB_API
void BCA_RegisterPairingFunc(
void* antDevice,
76 void (*func)(
void* context,
int* devicelist,
unsigned char count,
void* cookie),
79 BCA_LIB_API
int BCA_StartPairing(
void* antDevice,
84 BCA_LIB_API
int BCA_StopPairing(
void* antDevice);
86 BCA_LIB_API
int BCA_GetPairingDeviceInfo(
void* antDevice,
96 #endif // __BCA_ANTCALLBACKINTERFACE_H__