18 #ifndef __BRP_BALTECH_SDK_CMDS_BLEPERIPH_H__ 19 #define __BRP_BALTECH_SDK_CMDS_BLEPERIPH_H__ 20 #include "../typedefs.h" 24 #define BRP_BlePeriph_ErrNotEnabled BRP_ERR_STATUS(0x4B00, 0x01) 28 #define BRP_BlePeriph_ErrNotConnected BRP_ERR_STATUS(0x4B00, 0x02) 32 #define BRP_BlePeriph_ErrInvalidCharacteristicNdx BRP_ERR_STATUS(0x4B00, 0x03) 36 #define BRP_BlePeriph_ErrWriteCharacteristic BRP_ERR_STATUS(0x4B00, 0x04) 58 #ifdef BRP_SUPPORT_LEGACY_METHODS 74 #ifdef BRP_SUPPORT_LEGACY_METHODS 96 #ifdef BRP_SUPPORT_LEGACY_METHODS 120 #ifdef BRP_SUPPORT_LEGACY_METHODS 146 #ifdef BRP_SUPPORT_LEGACY_METHODS 172 #ifdef BRP_SUPPORT_LEGACY_METHODS 173 brp_errcode brp_BlePeriph_GetEvents(
brp_protocol protocol,
bool* ConnectionStatusChanged,
bool* ValueChangedCharacteristicNdx4,
bool* ValueChangedCharacteristicNdx3,
bool* ValueChangedCharacteristicNdx2,
bool* ValueChangedCharacteristicNdx1,
bool* ValueChangedCharacteristicNdx0);
192 #ifdef BRP_SUPPORT_LEGACY_METHODS 208 #ifdef BRP_SUPPORT_LEGACY_METHODS 222 #ifdef BRP_SUPPORT_LEGACY_METHODS
brp_errcode brp_BlePeriph_ReadCharacteristic(brp_BlePeriph_ReadCharacteristic_t params)
This command retrieves the current value of a characteristic.
brp_errcode brp_BlePeriph_IsConnected(brp_BlePeriph_IsConnected_t params)
This command is used to check the current connection status.
bool * ConnectionStatusChanged
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
unsigned CharacteristicNdx
brp_errcode brp_BlePeriph_WriteCharacteristic(brp_BlePeriph_WriteCharacteristic_t params)
This command changes the value of a characteristic.
brp_BlePeriph_DefineService_Characteristics_Entry * Characteristics
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
size_t Characteristics_len
brp_BlePeriph_IsConnected_AddressType
Remote device address type.
size_t AdvertisingData_len
struct brp_mempool_object_t * brp_mempool
mempool handle.
bool * ValueChangedCharacteristicNdx3
bool * ValueChangedCharacteristicNdx1
brp_errcode brp_BlePeriph_DefineService(brp_BlePeriph_DefineService_t params)
This command registers a new BLE service.
bool * ValueChangedCharacteristicNdx4
brp_BlePeriph_IsConnected_AddressType * AddressType
brp_errcode brp_BlePeriph_Enable(brp_BlePeriph_Enable_t params)
This command starts/stops the advertisement of the reader as a BLE Peripheral, so you can respond to ...
unsigned CharacteristicNdx
brp_errcode brp_BlePeriph_CloseConnection(brp_BlePeriph_CloseConnection_t params)
This command closes the active connection with a BLE Central.
brp_errcode brp_BlePeriph_GetEvents(brp_BlePeriph_GetEvents_t params)
This command returns a bitmask of all events that have occurred since the last call of BlePeriph...
bool * ValueChangedCharacteristicNdx2
brp_errcode brp_BlePeriph_GetRSSI(brp_BlePeriph_GetRSSI_t params)
This command returns the RSSI value of the connected BLE Central.
bool * ValueChangedCharacteristicNdx0
brp_errcode brp_BlePeriph_SetAdvertisingData(brp_BlePeriph_SetAdvertisingData_t params)
This command defines the data to be advertised by the reader.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
size_t ScanResponseData_len