123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- #ifndef GATTTEST_H
- #define GATTTEST_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include "bcomdef.h"
- #include "OSAL.h"
- #define GATT_TEST_ATTR_LEN 20
- #define GATT_TEST_LONG_ATTR_LEN 50
- #define GATT_TEST_SERVICE 0x00000001
- #define GATT_BATT_STATE_SERVICE 0x00000002
- #define GATT_THERMO_HUMID_SERVICE 0x00000004
- #define GATT_WEIGHT_SERVICE 0x00000008
- #define GATT_POSITION_SERVICE 0x00000010
- #define GATT_ALERT_SERVICE 0x00000020
- #define GATT_MANUFACT_SENSOR_SERVICE 0x00000040
- #define GATT_MANUFACT_SCALES_SERVICE 0x00000080
- #define GATT_ADDRESS_SERVICE 0x00000100
- #define GATT_128BIT_UUID1_SERVICE 0x00000200
- #define GATT_128BIT_UUID2_SERVICE 0x00000400
- #define GATT_128BIT_UUID3_SERVICE 0x00000800
- extern bStatus_t GATTTest_AddService( uint32 services );
- extern bStatus_t GATTTest_DelService( uint32 services );
- extern void GATTTest_Init( uint8 taskId );
- extern uint16 GATTTest_ProcessEvent( uint8 task_id, uint16 events );
- extern bStatus_t GATTQual_AddService( uint32 services );
- extern bStatus_t GATTQual_DelService( uint32 services );
- #ifdef __cplusplus
- }
- #endif
- #endif
|