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
@ PCS_EVT_SETTING_DISABLE
@ PCS_SETTING_TYPE_ADV_INTERVAL
pcs_setting_type_t
PCS Service settings types.
@ PCS_SETTING_TYPE_CONN_PARAM
pcs_evt_handler_t evt_handler
void(* pcs_evt_handler_t)(pcs_evt_t *p_evt)
PCS Service event handler type.
PCS Service init stucture. This contains all option and data needed for initialization of the service...
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
sdk_err_t pcs_service_init(pcs_init_t *p_pcs_init)
Initialize a PCS Service instance and add in the database.
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.