Go to the documentation of this file.
62 #include "custom_config.h"
68 #define PCS_CONNECTION_MAX 10
69 #define PCS_MAX_DATA_LEN 244
70 #define PCS_SERVICE_UUID 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
71 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x05, 0xED, 0xA6
73 #define PCS_SET_PARAM_SUCCESS 0x00
74 #define PCS_SET_PARAM_FAIL 0x81
76 #define PCS_SET_ADV_DATA_3B 0x03
77 #define PCS_SET_ADV_DATA_10B 0x0a
78 #define PCS_SET_ADV_DATA_17B 0x11
79 #define PCS_SET_ADV_DATA_24B 0x18
80 #define PCS_SET_ADV_DATA_31B 0x1f
@ PCS_SETTING_TYPE_ADV_DATA
BLE advertising data.
@ PCS_EVT_SETTING_DISABLE
Setting notify has been disabled.
uint8_t conn_idx
The index of the connection.
@ PCS_SETTING_TYPE_ADV_INTERVAL
BLE Advertising Interval parameter.
@ PCS_EVT_INVALID
Invalid PCS event.
@ PCS_EVT_DISCONNECTED
Disconnected.
uint16_t length
Length of data.
pcs_setting_type_t
PCS Service settings types.
pcs_evt_type_t evt_type
The PCS event type.
@ PCS_EVT_TX_DISABLE
TX notify has been disabled.
@ PCS_EVT_TX_ENABLE
TX notify has been enabled.
@ PCS_EVT_SETTING_ENABLE
Setting notify has been enabled.
@ PCS_SETTING_TYPE_CONN_PARAM
BLE Connection parameter.
pcs_evt_handler_t evt_handler
PCS Service event handler.
@ PCS_EVT_TX_DATA_SENT
Data has been notitied completely.
@ PCS_EVT_PARAM_SET
BLE parameters set.
void(* pcs_evt_handler_t)(pcs_evt_t *p_evt)
PCS Service event handler type.
PCS Service init stucture.
uint8_t * p_data
Pointer to data.
sdk_err_t pcs_setting_reply(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Reply parameters set result.
uint16_t sdk_err_t
SDK API result type.
@ PCS_SETTING_TYPE_TX_POWER
Tx Power.
sdk_err_t pcs_service_init(pcs_init_t *p_pcs_init)
Initialize a PCS Service instance and add in the database.
@ PCS_SETTING_TYPE_PHY
Radio Phy mode, 1M, 2M, Encoded.
sdk_err_t pcs_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.
pcs_evt_type_t
PCS Service event types.