30 #ifndef __BRP_BALTECH_API_CMDS_BLEPERIPH_H__ 31 #define __BRP_BALTECH_API_CMDS_BLEPERIPH_H__ 32 #include "../typedefs.h" 38 #define BRP_BlePeriph_ErrNotInactive BRP_ERR_STATUS(0x4B00, 0x01) brp_errcode brp_BlePeriph_GetRSSI(brp_protocol protocol, unsigned *AbsRSSI)
brp_errcode brp_BlePeriph_GetCharacteristic(brp_protocol protocol, unsigned CharacteristicNdx, brp_buf *CurrentValue, size_t *CurrentValue_len, brp_mempool *mempool)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_errcode brp_BlePeriph_GetEvents(brp_protocol protocol, brp_BlePeriph_GetEvents_Events_Entry **Events, size_t *Events_len, brp_mempool *mempool)
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_BlePeriph_SetDeviceName(brp_protocol protocol, brp_buf DeviceName, size_t DeviceName_len)
brp_errcode brp_BlePeriph_DefineService(brp_protocol protocol, brp_buf ServiceUUID, size_t ServiceUUID_len, brp_BlePeriph_DefineService_Characteristics_Entry *Characteristics, size_t Characteristics_len)
brp_errcode brp_BlePeriph_SetCharacteristic(brp_protocol protocol, unsigned CharacteristicNdx, brp_buf NewValue, size_t NewValue_len)
brp_errcode brp_BlePeriph_Enable(brp_protocol protocol, bool Activate)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.