123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- #ifndef SIMPLEGATTPROFILE_H
- #define SIMPLEGATTPROFILE_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define SIMPLEPROFILE_CHAR1 0
- #define SIMPLEPROFILE_CHAR2 1
- #define SIMPLEPROFILE_CHAR3 2
- #define SIMPLEPROFILE_CHAR4 3
- #define SIMPLEPROFILE_CHAR5 4
-
- #define SIMPLEPROFILE_SERV_UUID 0xFFF0
-
- #define SIMPLEPROFILE_CHAR1_UUID 0xFFF1
- #define SIMPLEPROFILE_CHAR2_UUID 0xFFF2
- #define SIMPLEPROFILE_CHAR3_UUID 0xFFF3
- #define SIMPLEPROFILE_CHAR4_UUID 0xFFF4
- #define SIMPLEPROFILE_CHAR5_UUID 0xFFF5
-
- #define SIMPLEPROFILE_SERVICE 0x00000001
- #define SIMPLEPROFILE_CHAR5_LEN 5
- #define IBEACON_UUID_LEN 16
-
- typedef void (*simpleProfileChange_t)( uint8 paramID );
- typedef struct
- {
- simpleProfileChange_t pfnSimpleProfileChange;
- } simpleProfileCBs_t;
-
- extern bStatus_t SimpleProfile_AddService( uint32 services );
- extern bStatus_t SimpleProfile_RegisterAppCBs( simpleProfileCBs_t *appCallbacks );
- extern bStatus_t SimpleProfile_SetParameter( uint8 param, uint8 len, void *value );
-
- extern bStatus_t SimpleProfile_GetParameter( uint8 param, void *value );
- #ifdef __cplusplus
- }
- #endif
- #endif
|