Data Structures | |
struct | adv_element |
advertisement data element More... | |
struct | ble_custom_event_cb |
struct | ble_custom_event_cb_t |
All BLE Custom event callback types. More... | |
struct | gatt_ias_char_handler |
struct | gatt_lls_char_handler |
struct | gatt_service_handler |
GATT service handles. More... | |
struct | gatt_txps_char_handler |
struct | gatt_wificon_char_handler |
struct | gatt_wifiscan_char_handler |
struct | wificon_gatt_service_handler |
struct | wifiscan_gatt_service_handler |
Macros | |
#define | ADV_INTERVAL_SIZE 2 |
#define | ALERT_LEVEL_CHAR_UUID (0x2A06) |
#define | APPEARANCE_SIZE 2 |
Length of Adv data types. More... | |
#define | BAT_CHAR_BAT_LEVEL_UUID (0x2A19) |
battery level characteristic uuid More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_DESCRIPTOR 0x0000 |
Characteristic presentation format descriptor. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_EXPONENT 0x00 |
Characteristic presentation format exponent. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_NAMESPACE 0x01 |
Characteristic presentation format namespace. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_UNIT BAT_SERVICE_UUID |
Characteristic presentation format unit. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_VALUE 0x04 |
characteristic presentation format value More... | |
#define | BAT_SERVICE_UUID (0x180F) |
battery service uuid More... | |
#define | BLE_ADDITIONAL_CONNECTED_STATE_HANDLER pxp_reporter_connected_state_handler |
#define | BLE_ADDITIONAL_CONNECTED_STATE_HANDLER pxp_monitor_connected_state_handler |
#define | BLE_ADDITIONAL_DISCONNECTED_STATE_HANDLER pxp_disconnect_event_handler |
#define | BLE_ADDITIONAL_DISCONNECTED_STATE_HANDLER pxp_disconnect_event_handler |
#define | BLE_ADDITIONAL_ENCRYPTION_CHANGED_HANDLER ble_dummy_handler |
#define | BLE_ADDITIONAL_PAIR_DONE_HANDLER ble_dummy_handler |
#define | BLE_AUTHENTICATION_LEVEL (AT_BLE_MODE1_L2_AUTH_PAIR_ENC) |
#define | BLE_BOND_REQ (true) |
#define | BLE_CHARACTERISTIC_CHANGED wifi_provision_char_changed_handler |
#define | BLE_CHARACTERISTIC_CHANGED pxp_reporter_char_changed_handler |
#define | BLE_CHARACTERISTIC_FOUND_HANDLER pxp_monitor_characteristic_found_handler |
#define | BLE_CHARACTERISTIC_READ_RESPONSE pxp_monitor_characteristic_read_response |
#define | BLE_CHARACTERISTIC_WRITE_RESPONSE ble_dummy_handler |
#define | BLE_CONN_PARAM_UPDATE_DONE ble_conn_param_update |
#define | BLE_CONNECTED_STATE_HANDLER(param) |
initializing function handlers for ANP client More... | |
#define | BLE_DESCRIPTOR_FOUND_HANDLER ble_dummy_handler |
#define | BLE_DEVICE_NAME "MCHP_BLE" |
#define | BLE_DEVICE_NAME "MCHP-PXP" |
#define | BLE_DEVICE_NAME "MCHP-MON" |
#define | BLE_DEVICE_NAME "MCHP-OBS" |
#define | BLE_DISCONNECTED_STATE_HANDLER(param) |
#define | BLE_DISCOVERY_COMPLETE_HANDLER pxp_monitor_discovery_complete_handler |
#define | BLE_ENCRYPTION_REQUEST ble_encryption_request_handler |
#define | BLE_ENCRYPTION_STATUS_CHANGED(param) |
#define | BLE_EVENT_TIMEOUT (0) |
default device name More... | |
#define | BLE_MITM_REQ (true) |
#define | BLE_NOTIFICATION_RECEIVED_HANDLER ble_dummy_handler |
#define | BLE_PAIR_DONE(param) |
#define | BLE_PAIR_DONE pxp_monitor_pair_done_handler |
#define | BLE_PAIR_ENABLE (false) |
#define | BLE_PAIR_KEY_REQUEST ble_pair_key_request_handler |
#define | BLE_PAIR_KEY_REQUEST ble_pair_key_request_handler |
#define | BLE_PAIR_REQUEST ble_pair_request_handler |
#define | BLE_PRIMARY_SERVICE_FOUND_HANDLER pxp_monitor_service_found_handler |
#define | BLE_PROFILE_INIT wifi_provision_init |
Function handlers for proximity monitor. More... | |
#define | BLE_PROFILE_INIT pxp_reporter_init |
Function handlers for proximity monitor. More... | |
#define | BLE_PROFILE_INIT pxp_monitor_init |
Function handlers for proximity monitor. More... | |
#define | BLE_SCAN_DATA_HANDLER ble_observer_scan_data_handler |
#define | BLE_SCAN_DATA_HANDLER pxp_monitor_scan_data_handler |
#define | BLE_SCAN_INFO_HANDLER(param) |
#define | BLE_SCAN_INFO_HANDLER ble_scan_info_handler |
#define | BLE_SCAN_REPORT_HANDLER ble_scan_report_handler |
#define | BLE_SCAN_REPORT_HANDLER ble_scan_report_handler |
#define | BLE_SERVICE_CHANGED wifi_provision_svc_changed_handler |
#define | BLE_SLAVE_SEC_REQUEST ble_slave_security_handler |
#define | BLE_SLAVE_SEC_REQUEST ble_slave_security_handler |
#define | BODY_SENSOR_LOCATION_CHAR_UUID (0x2A38) |
Body Sensor location characteristic uuid. More... | |
#define | BREDR_NOT_SUPPORTED ((uint8_t) 1 << 2) |
#define | CHAR_USER_STR_WIFICON_APPARAM ("AP Parameters") |
#define | CHAR_USER_STR_WIFICON_APPARAM_LEN (13) |
WIFICON APPARAM NAME_LEN the length of the device name. More... | |
#define | CHAR_USER_STR_WIFICON_STATE ("WiFi Connect State") |
#define | CHAR_USER_STR_WIFICON_STATE_LEN (18) |
WIFICON STATE NAME_LEN the length of the device name. More... | |
#define | CHAR_USER_STR_WIFISCAN_APCOUNT ("AP Count") |
#define | CHAR_USER_STR_WIFISCAN_APCOUNT_LEN (8) |
WIFISCAN APCOUNT NAME_LEN the length of the device name. More... | |
#define | CHAR_USER_STR_WIFISCAN_APDETAILS ("AP Details") |
#define | CHAR_USER_STR_WIFISCAN_APDETAILS_LEN (10) |
WIFISCAN APDETAILS NAME_LEN the length of the device name. More... | |
#define | CHAR_USER_STR_WIFISCAN_SCANMODE ("WiFi Scanning Mode") |
#define | CHAR_USER_STR_WIFISCAN_SCANMODE_LEN (18) |
WIFISCAN SCANMODE NAME_LEN the length of the device name. More... | |
#define | CSC_ENDPOINT_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa6\x85\xe5\x11\x35\x39\xa1\xbb\x5a\xfd") |
CSC Endpoint Characteristic UUID. More... | |
#define | CSC_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa6\x85\xe5\x11\x35\x39\xa0\xbb\x5a\xfd") |
CSC Service UUID. More... | |
#define | CURRENT_TIME_CHAR_UUID (0x2A2B) |
#define | CURRENT_TIME_SERVICE_UUID (0x1805) |
#define | DEFAULT_TX_PWR_VALUE (6) |
DEFAULT_TX_PWR_VALUE the tx power value. More... | |
#define | DIS_CHAR_FIRMWARE_REVISION_UUID (0x2A26) |
#define | DIS_CHAR_HARDWARE_REVISION_UUID (0x2A27) |
#define | DIS_CHAR_IEEE_REG_CERT_DATA_LIST_UUID (0x2A2A) |
#define | DIS_CHAR_MANUFACTURER_NAME_UUID (0x2A29) |
#define | DIS_CHAR_MODEL_NUMBER_UUID (0x2A24) |
#define | DIS_CHAR_PNP_ID_UUID (0x2A50) |
#define | DIS_CHAR_SERIAL_NUMBER_UUID (0x2A25) |
#define | DIS_CHAR_SOFTWARE_REVISION_UUID (0x2A28) |
#define | DIS_CHAR_SYSTEM_ID_UUID (0x2A23) |
#define | DIS_SERVICE_UUID (0x180A) |
#define | FAILED_WIFICON_CHANGE_PARAM (0xee) |
#define | FAILED_WIFISCAN_CHANGE_PARAM (0xee) |
#define | GAP_CE_LEN_MAX (0) |
maximum length of local info parameters when using connection establishment proc More... | |
#define | GAP_CE_LEN_MIN (0) |
minimum length of local info parameters when using connection establishment proc More... | |
#define | GAP_CONN_INTERVAL_MAX (40) |
maximum connection interval More... | |
#define | GAP_CONN_INTERVAL_MIN (20) |
minimum connection interval More... | |
#define | GAP_CONN_SLAVE_LATENCY (0) |
connection slave latency More... | |
#define | GAP_CONNECT_PEER_COUNT (1) |
number of connections More... | |
#define | GAP_SUPERVISION_TIMEOUT (0x1f4) |
supervision time-out More... | |
#define | GATT_DISCOVERY_ENDING_HANDLE (0xFFFF) |
gatt discover end handle More... | |
#define | GATT_DISCOVERY_STARTING_HANDLE (0x0001) |
gatt discover start handle More... | |
#define | HEART_RATE_CHAR_PRESENTATION_FORMAT_DESCRIPTOR 0x0000 |
Characteristic presentation format descriptor. More... | |
#define | HEART_RATE_CHAR_PRESENTATION_FORMAT_EXPONENT 0x00 |
Characteristic presentation format exponent. More... | |
#define | HEART_RATE_CHAR_PRESENTATION_FORMAT_NAMESPACE 0x01 |
Characteristic presentation format namespace. More... | |
#define | HEART_RATE_CHAR_PRESENTATION_FORMAT_UNIT HEART_RATE_SERVICE_UUID |
Characteristic presentation format unit. More... | |
#define | HEART_RATE_CHAR_PRESENTATION_FORMAT_VALUE 0x04 |
characteristic presentation format value More... | |
#define | HEART_RATE_CONTROL_POINT_CHAR_UUID (0x2A39) |
Heart Rate Control Point characteristic uuid. More... | |
#define | HEART_RATE_MEASUREMENT_CHAR_UUID (0x2A37) |
heart rate measurement characteristic uuid More... | |
#define | HEART_RATE_SERVICE_UUID (0x180D) |
#define | HR_CONTROL_POINT_RESET (2) |
number for resetting energy expended More... | |
#define | HR_MM_EX_SIZE (2) |
maximum size of heart rate field of hr mm characteristic in bytes More... | |
#define | HR_MM_FLAGS_SIZE (1) |
maximum size of flags field of hr mm characteristic in bytes More... | |
#define | HR_MM_RR_SIZE (2 * 2) |
maximum size of rr value field of hr mm characteristic in bytes More... | |
#define | HR_MM_VAL_SIZE (2) |
maximum size of heart rate field of hr mm characteristic in bytes More... | |
#define | HR_NOTIFICATION_DISABLE (0) |
number for Enabling the notification More... | |
#define | HR_NOTIFICATION_ENABLE (1) |
number for disabling the notification More... | |
#define | IAS_CHARACTERISTIC_COUNT (1) |
count of characteristics in immediate alert service More... | |
#define | IAS_INCLUDED_SERVICE_COUNT (0) |
count of included services in immediate alert service More... | |
#define | IAS_NO_SIGNED_WRITE (false) |
#define | IAS_WRITE_LENGTH (1) |
#define | IAS_WRITE_OFFSET (0) |
#define | IAS_WRITE_WITH_RESPONSE (false) |
#define | IMMEDIATE_ALERT_SERVICE_UUID (0x1802) |
#define | INVALID_IAS_PARAM (0xff) |
Invalid parameter written. More... | |
#define | INVALID_LLS_PARAM (0xff) |
#define | INVALID_WIFICON_CHANGE_PARAM (0xff) |
status wifi_con of characteristics write More... | |
#define | INVALID_WIFISCAN_CHANGE_PARAM (0xff) |
results of wifiscan characteristics write More... | |
#define | LE_BREDR_CAPABLE_CONTROLLER ((uint8_t) 1 << 3) |
#define | LE_BREDR_CAPABLE_HOST ((uint8_t) 1 << 4) |
#define | LE_GENERAL_DISCOVERABLE_MODE ((uint8_t) 1 << 1) |
#define | LE_LIMITED_DISCOVERABLE_MODE ((uint8_t) 1 << 0) |
Observer related declarations. More... | |
#define | LINK_LOSS_SERVICE_UUID (0x1803) |
#define | LLS_ALERT_LEVEL LLS_HIGH_ALERT |
#define | LLS_CHARACTERISTIC_COUNT (1) |
count of characteristics in linkloss service More... | |
#define | LLS_INCLUDED_SERVICE_COUNT (0) |
count of included service in Linkloss service More... | |
#define | LLS_INVALID_CHAR_HANDLE (0) |
#define | LLS_NO_SIGNED_WRITE (false) |
#define | LLS_READ_LENGTH (1) |
#define | LLS_READ_OFFSET (0) |
#define | LLS_READ_RESP_INVALID (0xFF) |
#define | LLS_WRITE_LENGTH (1) |
#define | LLS_WRITE_OFFSET (0) |
#define | LLS_WRITE_WITH_RESPONSE (true) |
#define | MAX_DEVICE_CONNECTED (1) |
maximum number of devices connected More... | |
#define | MAX_IAS_CHAR_SIZE (1) |
#define | MAX_LLS_CHAR_SIZE (1) |
#define | MAX_SCAN_DEVICE (10) |
#define | MAX_TX_POWER_CHAR_SIZE (1) |
#define | SCAN_INTERVAL (0x140) |
#define | SCAN_TIMEOUT (0x0000) |
#define | SCAN_TYPE (AT_BLE_SCAN_ACTIVE) |
#define | SCAN_WINDOW (0x60) |
#define | SPS_CHAR_SCAN_INT_VALUE_UUID (0x2A4F) |
scan interval characteristic uuid More... | |
#define | SPS_CHAR_SCAN_REFRESH_UUID (0x2A31) |
scan refresh characteristic uuid More... | |
#define | SPS_SERVICE_UUID (0x1813) |
Scan param service uuid. More... | |
#define | TOTAL_CHARACTERISTIC_NUM 3 |
#define | TX_POWER_LEVEL_CHAR_UUID (0x2A07) |
#define | TX_POWER_LEVEL_SIZE 1 |
#define | TX_POWER_SERVICE_UUID (0x1804) |
#define | TXPS_CHARACTERISTIC_COUNT (1) |
count of characteristics in tx power service More... | |
#define | TXPS_INCLUDED_SERVICE_COUNT (0) |
count of included service in tx power service More... | |
#define | TXPS_INVALID_CHAR_HANDLE (0) |
#define | TXPS_INVALID_POWER_VALUE (0xFF) |
#define | TXPS_POWER_READ_LENGTH (1) |
#define | TXPS_POWER_READ_OFFSET (0) |
#define | UUID_MCHP_PROPRIETARY_SERVICE_16 0x55,0xE4,0x05,0xD2,0xAF,0x9F,0xA9,0x8F,0xE5,0x4A,0x7D,0xFE,0x43,0x53,0x53,0x49 |
#define | UUID_MCHP_TRANS_CTRL_16 0x7e,0x3b,0x07,0xff,0x1c,0x51,0x49,0x2f,0xb3,0x39,0x8a,0x4c,0x43,0x53,0x53,0x49 |
#define | UUID_MCHP_TRANS_RX_16 0xB3,0x9B,0x72,0x34,0xBE,0xEC,0xD4,0xA8,0xF4,0x43,0x41,0x88,0x43,0x53,0x53,0x49 |
#define | UUID_MCHP_TRANS_TX_16 0x16,0x96,0x24,0x47,0xC6,0x23,0x61,0xBA,0xD9,0x4B,0x4D,0x1E,0x43,0x53,0x53,0x49 |
#define | VALID_WIFICON_CHANGE_PARAM (0xdd) |
#define | VALID_WIFISCAN_CHANGE_PARAM (0xdd) |
#define | WIFI_CON_APPARAM_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x03\x00\x88\x77") |
#define | WIFI_CON_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x01\x00\x88\x77") |
Service UUID's. More... | |
#define | WIFI_CON_STATE_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x02\x00\x88\x77") |
#define | WIFI_SCAN_APCOUNT_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x03\x00\x8c\xfb") |
#define | WIFI_SCAN_APDETAILS_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x00\x01\x8c\xfb") |
#define | WIFI_SCAN_MODE_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x02\x00\x8c\xfb") |
#define | WIFI_SCAN_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x01\x00\x8c\xfb") |
#define | WIFICON_CHARACTERISTIC_COUNT (2) |
count of characteristics in wifi_con service More... | |
#define | WIFICON_INCLUDED_SERVICE_COUNT (0) |
count of included services in wifi_con service More... | |
#define | WIFICON_UUID_128_LEN (16) |
WIFICON_UUID_LEN the size of WIFICON service uuid. More... | |
#define | WIFISCAN_BASIC_CHARACTERISTIC (2) |
the two basic characteristics are scan mode and apcount More... | |
#define | WIFISCAN_CHARACTERISTIC_COUNT (WIFISCAN_BASIC_CHARACTERISTIC+WIFI_PROVISION_MAX_AP_NUM) |
count of characteristics in wifi_scan service More... | |
#define | WIFISCAN_INCLUDED_SERVICE_COUNT (0) |
count of included service in wifi_scan service More... | |
#define | WIFISCAN_UUID_128_LEN (16) |
WIFISCAN_UUID_LEN the size of WIFISCAN service uuid. More... | |
Functions | |
void | bat_init_service (gatt_service_handler_t *battery_serv, uint8_t *battery_value) |
Battery service and characteristic initialization(Called only once by user). More... | |
at_ble_status_t | bat_primary_service_define (gatt_service_handler_t *battery_service) |
Register a battery service instance inside stack. More... | |
at_ble_status_t | bat_update_char_value (gatt_service_handler_t *battery_serv, uint8_t char_data) |
Update the battery characteristic value after defining the services using bat_primary_service_define. More... | |
void | ble_characteristic_found_handler (at_ble_characteristic_found_t *characteristic_found) |
function called when the AT_BLE_CHARACTERISTIC_FOUND event is received from stack. More... | |
void | ble_conn_param_update (at_ble_conn_param_update_done_t *conn_param_update) |
function used to update the connection parameter. More... | |
void | ble_connected_state_handler (at_ble_connected_t *conn_params) |
function called when the AT_BLE_CONNECTED event is received from the stack. More... | |
void | ble_device_init (at_ble_addr_t *addr) |
function sets both device address and device name which are exposed to all other devices. More... | |
void | ble_disconnected_state_handler (at_ble_disconnected_t *disconnect) |
function called when the AT_BLE_DISCONNECTED event is received from the stack. More... | |
void | ble_discovery_complete_handler (at_ble_discovery_complete_t *discover_status) |
function called when the AT_BLE_DISCOVERY_COMPLETE event is received from the stack. More... | |
static void | ble_dummy_handler (void *param) |
void | ble_encryption_request_handler (at_ble_encryption_request_t *encry_req) |
function called when the AT_BLE_ENCRYPTION_REQUEST event is received from stack. More... | |
void | ble_encryption_status_change_handler (at_ble_encryption_status_changed_t *encry_status) |
function called when the AT_BLE_ENCRYPTION_STATUS_CHANGED event is received from stack. More... | |
void | ble_event_manager (at_ble_events_t events, void *event_params) |
function handling all the events from the stack, responsible for calling the respective functions initialized for the events. More... | |
at_ble_status_t | ble_event_task (void) |
function to handle the BLE event task. More... | |
at_ble_status_t | ble_pair_done_handler (at_ble_pair_done_t *pairing_params) |
function called when the AT_BLE_PAIR_DONE event is received from stack. More... | |
void | ble_pair_key_request_handler (at_ble_pair_key_request_t *pair_key) |
function called when the AT_BLE_PAIR_KEY_REQUEST event is received from stack. More... | |
void | ble_pair_request_handler (at_ble_pair_request_t *at_ble_pair_req) |
function called when the AT_BLE_PAIR_REQUEST event is received from stack. More... | |
at_ble_status_t | ble_scan_info_handler (at_ble_scan_info_t *scan_param) |
function to handle the scan information. More... | |
at_ble_status_t | ble_scan_report_handler (at_ble_scan_report_t *scan_report) |
function to handle the scan status. More... | |
at_ble_status_t | ble_send_slave_sec_request (at_ble_handle_t conn_handle) |
function to send slave security request. More... | |
at_ble_status_t | ble_set_device_name (uint8_t *name, uint8_t name_len) |
function to set the device name. More... | |
void | ble_slave_security_handler (at_ble_slave_sec_request_t *slave_sec_req) |
slave security handler More... | |
static at_ble_status_t | BLE_UNUSED2_VAR (void *param1_var, void *param2_var) |
at_ble_status_t | gap_dev_connect (at_ble_addr_t dev_addr[]) |
function requesting the device for the connection. More... | |
at_ble_status_t | gap_dev_scan (void) |
function to start scan. More... | |
void | heart_rate_init_service (gatt_service_handler_t *heart_rate_serv, uint8_t *heart_rate_value) |
Heart rate service and characteristic initialization(Called only once by user). More... | |
at_ble_status_t | heart_rate_primary_service_define (gatt_service_handler_t *heart_rate_service) |
Register a heart rate service instance inside stack. More... | |
at_ble_status_t | heart_rate_update_char_value (gatt_service_handler_t *heart_rate_serv, uint8_t *char_data, uint8_t length) |
Update the heart rate characteristic value after defining the services using bat_primary_service_define. More... | |
at_ble_status_t | ias_alert_level_write (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, immediate_alert_level_t alert_level) |
write a characteristic to Immediate Alert Characteristics More... | |
at_ble_status_t | ias_primary_service_define (gatt_service_handler_t *ias_primary_service) |
Defining Immediate alert service to the attribute data base. More... | |
uint8_t | ias_set_alert_value (at_ble_characteristic_changed_t *change_params, gatt_service_handler_t *ias_handler) |
sets the alert value of the immediate alert service More... | |
void | init_immediate_alert_service (gatt_service_handler_t *immediate_alert_serv) |
Initialize the Immediate alert service with default values. More... | |
void | init_linkloss_service (gatt_service_handler_t *linkloss_serv) |
Initialize the linkloss service with default values. More... | |
void | init_tx_power_service (gatt_service_handler_t *tx_power_serv) |
Initialize the tx power service with default values. More... | |
void | init_wifi_con_service (wificon_gatt_service_handler_t *wificon_handle) |
Initialize the wifi_con service with default values. More... | |
void | init_wifi_scan_service (wifiscan_gatt_service_handler_t *wifiscan_handle) |
Initialize the wifi_scan service with default values. More... | |
at_ble_status_t | lls_alert_level_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle) |
Send the Read request to link loss handler Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event. More... | |
at_ble_status_t | lls_alert_level_write (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, link_loss_alert_level_t alert_level) |
write a characteristic to Link Loss Characteristics More... | |
int8_t | lls_alert_read_response (at_ble_characteristic_read_response_t *read_resp, gatt_lls_char_handler_t *lls_handler) |
Read Link Loss Alert Value. More... | |
at_ble_status_t | lls_primary_service_define (gatt_service_handler_t *lls_service) |
Defining linkloss service to the attribute data base. More... | |
uint8_t | lls_set_alert_value (at_ble_characteristic_changed_t *change_params, gatt_service_handler_t *lls_handler) |
sets the alert value of the Linkloss service More... | |
void | register_ble_characteristic_changed_cb (ble_characteristic_changed_callback_t char_changed_cb_fn) |
Register callback function, to be triggered when characteristic value is changed. More... | |
void | register_ble_connected_event_cb (ble_gap_event_callback_t connected_cb_fn) |
Register callback function, to be triggered when connected to the device. More... | |
void | register_ble_disconnected_event_cb (ble_gap_event_callback_t disconnected_cb_fn) |
Register callback function, to be triggered when disconnected from the peer device. More... | |
void | register_ble_paired_event_cb (ble_gap_event_callback_t paired_cb_fn) |
Register callback function, to be triggered when pairing procedure is completed. More... | |
uint8_t | scan_info_parse (at_ble_scan_info_t *scan_info_data, at_ble_uuid_t *ble_service_uuid, uint8_t adv_type) |
function parses the received advertising data for service and local name. More... | |
void | trans_service_init (gatt_service_handler_t *trans_service) |
transparent service and characteristic initialization(Called only once by user). More... | |
at_ble_status_t | trans_service_primary_service_define (gatt_service_handler_t *trans_service) |
Register a transparent service instance inside stack. More... | |
at_ble_status_t | trans_update_ctrl_char_value (gatt_service_handler_t *trans_service, uint8_t *trans_ctrl_value, uint8_t len) |
Ctrl characteristic value after defining the services using bat_primary_service_define. More... | |
at_ble_status_t | trans_update_tx_char_value (gatt_service_handler_t *trans_service, uint8_t *trans_tx_value, uint8_t len) |
Tx characteristic value after defining the services using bat_primary_service_define. More... | |
at_ble_status_t | txps_power_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle) |
Send the Read Request to Tx Power service. More... | |
int8_t | txps_power_read_response (at_ble_characteristic_read_response_t *char_read_resp, gatt_txps_char_handler_t *txps_handler) |
Read a Tx Power. More... | |
at_ble_status_t | txps_primary_service_define (gatt_service_handler_t *txps_primary_service) |
Defining the tx power service to the attribute data base. More... | |
uint8_t | wificon_char_change_apparam (at_ble_characteristic_changed_t *param, wificon_gatt_service_handler_t *wificon_handle) |
wificon service apparam characteristics change More... | |
uint8_t | wificon_char_change_state_client_cfg (at_ble_characteristic_changed_t *param, wificon_gatt_service_handler_t *wificon_handle) |
wificon service state characteristics client config change More... | |
at_ble_status_t | wificon_connect_noti (wificon_gatt_service_handler_t *wificon_handler, uint8_t s) |
notification on the wifi connecting progress More... | |
at_ble_status_t | wificon_primary_service_define (wificon_gatt_service_handler_t *wificon_primary_service) |
Defining the wifi_con service to the attribute data base. More... | |
uint8_t | wifiscan_char_change_scanmode (at_ble_characteristic_changed_t *p, wifiscan_gatt_service_handler_t *wifiscan_handle) |
wifiscan service scan mode characteristics change More... | |
at_ble_status_t | wifiscan_primary_service_define (wifiscan_gatt_service_handler_t *wifiscan_primary_service) |
Defining the wifi_scan service to the attribute data base. More... | |
void | wifiscan_print_char (wifiscan_gatt_service_handler_t *wifiscan_handler) |
utility function to retrieve and print out characteristics (scanmode and ap_num) More... | |
at_ble_status_t | wifiscan_scanlist_receive (wifiscan_gatt_service_handler_t *wifiscan_serv, wifi_provision_scanlist *param, uint8_t *num_ap_found) |
update wifiscan scan list More... | |
at_ble_status_t | wifiscan_update_scanmode_char_value (wifiscan_gatt_service_handler_t *wifiscan_serv, uint8_t char_data) |
update wifiscan scan mode More... | |
#define ADV_INTERVAL_SIZE 2 |
#define ALERT_LEVEL_CHAR_UUID (0x2A06) |
#define APPEARANCE_SIZE 2 |
Length of Adv data types.
#define BAT_CHAR_BAT_LEVEL_UUID (0x2A19) |
battery level characteristic uuid
Referenced by bat_init_service().
#define BAT_CHAR_PRESENTATION_FORMAT_DESCRIPTOR 0x0000 |
Characteristic presentation format descriptor.
Referenced by bat_init_service().
#define BAT_CHAR_PRESENTATION_FORMAT_EXPONENT 0x00 |
Characteristic presentation format exponent.
Referenced by bat_init_service().
#define BAT_CHAR_PRESENTATION_FORMAT_NAMESPACE 0x01 |
Characteristic presentation format namespace.
Referenced by bat_init_service().
#define BAT_CHAR_PRESENTATION_FORMAT_UNIT BAT_SERVICE_UUID |
Characteristic presentation format unit.
Referenced by bat_init_service().
#define BAT_CHAR_PRESENTATION_FORMAT_VALUE 0x04 |
characteristic presentation format value
Referenced by bat_init_service().
#define BAT_SERVICE_UUID (0x180F) |
battery service uuid
Referenced by bat_init_service(), and ble_bat_start_advertise().
#define BLE_ADDITIONAL_CONNECTED_STATE_HANDLER pxp_reporter_connected_state_handler |
#define BLE_ADDITIONAL_CONNECTED_STATE_HANDLER pxp_monitor_connected_state_handler |
#define BLE_ADDITIONAL_DISCONNECTED_STATE_HANDLER pxp_disconnect_event_handler |
#define BLE_ADDITIONAL_DISCONNECTED_STATE_HANDLER pxp_disconnect_event_handler |
#define BLE_ADDITIONAL_ENCRYPTION_CHANGED_HANDLER ble_dummy_handler |
#define BLE_ADDITIONAL_PAIR_DONE_HANDLER ble_dummy_handler |
#define BLE_AUTHENTICATION_LEVEL (AT_BLE_MODE1_L2_AUTH_PAIR_ENC) |
Referenced by ble_slave_security_handler().
#define BLE_BOND_REQ (true) |
#define BLE_CHARACTERISTIC_CHANGED wifi_provision_char_changed_handler |
Referenced by ble_event_manager().
#define BLE_CHARACTERISTIC_CHANGED pxp_reporter_char_changed_handler |
#define BLE_CHARACTERISTIC_FOUND_HANDLER pxp_monitor_characteristic_found_handler |
Referenced by ble_event_manager().
#define BLE_CHARACTERISTIC_READ_RESPONSE pxp_monitor_characteristic_read_response |
Referenced by ble_event_manager().
#define BLE_CHARACTERISTIC_WRITE_RESPONSE ble_dummy_handler |
Referenced by ble_event_manager().
#define BLE_CONN_PARAM_UPDATE_DONE ble_conn_param_update |
Referenced by ble_event_manager().
#define BLE_CONNECTED_STATE_HANDLER | ( | param | ) |
initializing function handlers for ANP client
initializing function handlers for TIP client
Referenced by ble_event_manager().
#define BLE_DESCRIPTOR_FOUND_HANDLER ble_dummy_handler |
Referenced by ble_event_manager().
#define BLE_DEVICE_NAME "MCHP_BLE" |
Referenced by ble_device_init().
#define BLE_DEVICE_NAME "MCHP-PXP" |
#define BLE_DEVICE_NAME "MCHP-MON" |
#define BLE_DEVICE_NAME "MCHP-OBS" |
#define BLE_DISCONNECTED_STATE_HANDLER | ( | param | ) |
Referenced by ble_event_manager().
#define BLE_DISCOVERY_COMPLETE_HANDLER pxp_monitor_discovery_complete_handler |
Referenced by ble_event_manager().
#define BLE_ENCRYPTION_REQUEST ble_encryption_request_handler |
Referenced by ble_event_manager().
#define BLE_ENCRYPTION_STATUS_CHANGED | ( | param | ) |
Referenced by ble_event_manager().
#define BLE_EVENT_TIMEOUT (0) |
#define BLE_MITM_REQ (true) |
#define BLE_NOTIFICATION_RECEIVED_HANDLER ble_dummy_handler |
Referenced by ble_event_manager().
#define BLE_PAIR_DONE | ( | param | ) |
Referenced by ble_event_manager().
#define BLE_PAIR_DONE pxp_monitor_pair_done_handler |
#define BLE_PAIR_ENABLE (false) |
Referenced by csc_serv_init().
#define BLE_PAIR_KEY_REQUEST ble_pair_key_request_handler |
Referenced by ble_event_manager().
#define BLE_PAIR_KEY_REQUEST ble_pair_key_request_handler |
#define BLE_PAIR_REQUEST ble_pair_request_handler |
Referenced by ble_event_manager().
#define BLE_PRIMARY_SERVICE_FOUND_HANDLER pxp_monitor_service_found_handler |
Referenced by ble_event_manager().
#define BLE_PROFILE_INIT wifi_provision_init |
Function handlers for proximity monitor.
Referenced by ble_device_init().
#define BLE_PROFILE_INIT pxp_reporter_init |
Function handlers for proximity monitor.
#define BLE_PROFILE_INIT pxp_monitor_init |
Function handlers for proximity monitor.
#define BLE_SCAN_DATA_HANDLER ble_observer_scan_data_handler |
Referenced by ble_scan_report_handler().
#define BLE_SCAN_DATA_HANDLER pxp_monitor_scan_data_handler |
#define BLE_SCAN_INFO_HANDLER | ( | param | ) |
Referenced by ble_event_manager().
#define BLE_SCAN_INFO_HANDLER ble_scan_info_handler |
#define BLE_SCAN_REPORT_HANDLER ble_scan_report_handler |
Referenced by ble_event_manager().
#define BLE_SCAN_REPORT_HANDLER ble_scan_report_handler |
#define BLE_SERVICE_CHANGED wifi_provision_svc_changed_handler |
Referenced by ble_event_manager().
#define BLE_SLAVE_SEC_REQUEST ble_slave_security_handler |
Referenced by ble_event_manager().
#define BLE_SLAVE_SEC_REQUEST ble_slave_security_handler |
#define BODY_SENSOR_LOCATION_CHAR_UUID (0x2A38) |
Body Sensor location characteristic uuid.
Referenced by heart_rate_init_service().
#define BREDR_NOT_SUPPORTED ((uint8_t) 1 << 2) |
#define CHAR_USER_STR_WIFICON_APPARAM ("AP Parameters") |
Referenced by init_wifi_con_service().
#define CHAR_USER_STR_WIFICON_APPARAM_LEN (13) |
WIFICON APPARAM NAME_LEN the length of the device name.
Referenced by init_wifi_con_service().
#define CHAR_USER_STR_WIFICON_STATE ("WiFi Connect State") |
Referenced by init_wifi_con_service().
#define CHAR_USER_STR_WIFICON_STATE_LEN (18) |
WIFICON STATE NAME_LEN the length of the device name.
Referenced by init_wifi_con_service().
#define CHAR_USER_STR_WIFISCAN_APCOUNT ("AP Count") |
#define CHAR_USER_STR_WIFISCAN_APCOUNT_LEN (8) |
WIFISCAN APCOUNT NAME_LEN the length of the device name.
#define CHAR_USER_STR_WIFISCAN_APDETAILS ("AP Details") |
Referenced by init_wifi_scan_service().
#define CHAR_USER_STR_WIFISCAN_APDETAILS_LEN (10) |
WIFISCAN APDETAILS NAME_LEN the length of the device name.
Referenced by init_wifi_scan_service().
#define CHAR_USER_STR_WIFISCAN_SCANMODE ("WiFi Scanning Mode") |
Referenced by init_wifi_scan_service().
#define CHAR_USER_STR_WIFISCAN_SCANMODE_LEN (18) |
WIFISCAN SCANMODE NAME_LEN the length of the device name.
Referenced by init_wifi_scan_service().
#define CSC_ENDPOINT_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa6\x85\xe5\x11\x35\x39\xa1\xbb\x5a\xfd") |
CSC Endpoint Characteristic UUID.
Referenced by csc_serv_init().
#define CSC_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa6\x85\xe5\x11\x35\x39\xa0\xbb\x5a\xfd") |
CSC Service UUID.
Referenced by csc_prf_connected_state_handler(), csc_prf_dev_adv(), and csc_serv_init().
#define CURRENT_TIME_CHAR_UUID (0x2A2B) |
#define CURRENT_TIME_SERVICE_UUID (0x1805) |
#define DEFAULT_TX_PWR_VALUE (6) |
DEFAULT_TX_PWR_VALUE the tx power value.
#define DIS_CHAR_FIRMWARE_REVISION_UUID (0x2A26) |
#define DIS_CHAR_HARDWARE_REVISION_UUID (0x2A27) |
#define DIS_CHAR_IEEE_REG_CERT_DATA_LIST_UUID (0x2A2A) |
#define DIS_CHAR_MANUFACTURER_NAME_UUID (0x2A29) |
#define DIS_CHAR_MODEL_NUMBER_UUID (0x2A24) |
#define DIS_CHAR_PNP_ID_UUID (0x2A50) |
#define DIS_CHAR_SERIAL_NUMBER_UUID (0x2A25) |
#define DIS_CHAR_SOFTWARE_REVISION_UUID (0x2A28) |
#define DIS_CHAR_SYSTEM_ID_UUID (0x2A23) |
#define DIS_SERVICE_UUID (0x180A) |
#define FAILED_WIFICON_CHANGE_PARAM (0xee) |
#define FAILED_WIFISCAN_CHANGE_PARAM (0xee) |
Referenced by wifi_provision_char_changed_handler(), and wifiscan_char_change_scanmode().
#define GAP_CE_LEN_MAX (0) |
maximum length of local info parameters when using connection establishment proc
Referenced by gap_dev_connect().
#define GAP_CE_LEN_MIN (0) |
minimum length of local info parameters when using connection establishment proc
Referenced by gap_dev_connect().
#define GAP_CONN_INTERVAL_MAX (40) |
maximum connection interval
Referenced by gap_dev_connect().
#define GAP_CONN_INTERVAL_MIN (20) |
minimum connection interval
Referenced by gap_dev_connect().
#define GAP_CONN_SLAVE_LATENCY (0) |
connection slave latency
Referenced by gap_dev_connect().
#define GAP_CONNECT_PEER_COUNT (1) |
number of connections
Referenced by gap_dev_connect().
#define GAP_SUPERVISION_TIMEOUT (0x1f4) |
supervision time-out
Referenced by gap_dev_connect().
#define GATT_DISCOVERY_ENDING_HANDLE (0xFFFF) |
gatt discover end handle
Referenced by pxp_monitor_service_discover().
#define GATT_DISCOVERY_STARTING_HANDLE (0x0001) |
gatt discover start handle
Referenced by pxp_monitor_service_discover().
#define HEART_RATE_CHAR_PRESENTATION_FORMAT_DESCRIPTOR 0x0000 |
Characteristic presentation format descriptor.
#define HEART_RATE_CHAR_PRESENTATION_FORMAT_EXPONENT 0x00 |
Characteristic presentation format exponent.
#define HEART_RATE_CHAR_PRESENTATION_FORMAT_NAMESPACE 0x01 |
Characteristic presentation format namespace.
#define HEART_RATE_CHAR_PRESENTATION_FORMAT_UNIT HEART_RATE_SERVICE_UUID |
Characteristic presentation format unit.
#define HEART_RATE_CHAR_PRESENTATION_FORMAT_VALUE 0x04 |
characteristic presentation format value
#define HEART_RATE_CONTROL_POINT_CHAR_UUID (0x2A39) |
Heart Rate Control Point characteristic uuid.
Referenced by heart_rate_init_service().
#define HEART_RATE_MEASUREMENT_CHAR_UUID (0x2A37) |
heart rate measurement characteristic uuid
Referenced by heart_rate_init_service().
#define HEART_RATE_SERVICE_UUID (0x180D) |
Referenced by ble_heart_rate_start_advertise(), and heart_rate_init_service().
#define HR_CONTROL_POINT_RESET (2) |
number for resetting energy expended
#define HR_MM_EX_SIZE (2) |
maximum size of heart rate field of hr mm characteristic in bytes
Referenced by heart_rate_init_service().
#define HR_MM_FLAGS_SIZE (1) |
maximum size of flags field of hr mm characteristic in bytes
Referenced by heart_rate_init_service().
#define HR_MM_RR_SIZE (2 * 2) |
maximum size of rr value field of hr mm characteristic in bytes
Referenced by heart_rate_init_service().
#define HR_MM_VAL_SIZE (2) |
maximum size of heart rate field of hr mm characteristic in bytes
Referenced by heart_rate_init_service().
#define HR_NOTIFICATION_DISABLE (0) |
number for Enabling the notification
#define HR_NOTIFICATION_ENABLE (1) |
number for disabling the notification
#define IAS_CHARACTERISTIC_COUNT (1) |
count of characteristics in immediate alert service
Referenced by ias_primary_service_define().
#define IAS_INCLUDED_SERVICE_COUNT (0) |
count of included services in immediate alert service
Referenced by ias_primary_service_define().
#define IAS_NO_SIGNED_WRITE (false) |
Referenced by ias_alert_level_write().
#define IAS_WRITE_LENGTH (1) |
Referenced by ias_alert_level_write().
#define IAS_WRITE_OFFSET (0) |
Referenced by ias_alert_level_write().
#define IAS_WRITE_WITH_RESPONSE (false) |
Referenced by ias_alert_level_write().
#define IMMEDIATE_ALERT_SERVICE_UUID (0x1802) |
Referenced by init_immediate_alert_service(), pxp_monitor_service_found_handler(), and pxp_reporter_adv().
#define INVALID_IAS_PARAM (0xff) |
Invalid parameter written.
Referenced by ias_set_alert_value(), and pxp_reporter_char_changed_handler().
#define INVALID_LLS_PARAM (0xff) |
Referenced by lls_set_alert_value(), and pxp_reporter_char_changed_handler().
#define INVALID_WIFICON_CHANGE_PARAM (0xff) |
status wifi_con of characteristics write
Referenced by wifi_provision_char_changed_handler(), wificon_char_change_apparam(), and wificon_char_change_state_client_cfg().
#define INVALID_WIFISCAN_CHANGE_PARAM (0xff) |
results of wifiscan characteristics write
Referenced by wifiscan_char_change_scanmode().
#define LE_BREDR_CAPABLE_CONTROLLER ((uint8_t) 1 << 3) |
#define LE_BREDR_CAPABLE_HOST ((uint8_t) 1 << 4) |
#define LE_GENERAL_DISCOVERABLE_MODE ((uint8_t) 1 << 1) |
#define LE_LIMITED_DISCOVERABLE_MODE ((uint8_t) 1 << 0) |
Observer related declarations.
#define LINK_LOSS_SERVICE_UUID (0x1803) |
#define LLS_ALERT_LEVEL LLS_HIGH_ALERT |
Referenced by pxp_monitor_discovery_complete_handler().
#define LLS_CHARACTERISTIC_COUNT (1) |
count of characteristics in linkloss service
Referenced by lls_primary_service_define().
#define LLS_INCLUDED_SERVICE_COUNT (0) |
count of included service in Linkloss service
Referenced by lls_primary_service_define().
#define LLS_INVALID_CHAR_HANDLE (0) |
Referenced by lls_alert_level_read().
#define LLS_NO_SIGNED_WRITE (false) |
Referenced by lls_alert_level_write().
#define LLS_READ_LENGTH (1) |
Referenced by lls_alert_level_read(), and lls_alert_read_response().
#define LLS_READ_OFFSET (0) |
Referenced by lls_alert_level_read(), and lls_alert_read_response().
#define LLS_READ_RESP_INVALID (0xFF) |
Referenced by lls_alert_read_response().
#define LLS_WRITE_LENGTH (1) |
Referenced by lls_alert_level_write().
#define LLS_WRITE_OFFSET (0) |
Referenced by lls_alert_level_write().
#define LLS_WRITE_WITH_RESPONSE (true) |
Referenced by lls_alert_level_write().
#define MAX_DEVICE_CONNECTED (1) |
maximum number of devices connected
#define MAX_IAS_CHAR_SIZE (1) |
#define MAX_LLS_CHAR_SIZE (1) |
#define MAX_SCAN_DEVICE (10) |
Referenced by ble_scan_info_handler(), and pxp_monitor_scan_data_handler().
#define MAX_TX_POWER_CHAR_SIZE (1) |
#define SCAN_INTERVAL (0x140) |
Referenced by gap_dev_connect(), and gap_dev_scan().
#define SCAN_TIMEOUT (0x0000) |
Referenced by gap_dev_scan().
#define SCAN_TYPE (AT_BLE_SCAN_ACTIVE) |
Referenced by gap_dev_scan().
#define SCAN_WINDOW (0x60) |
Referenced by gap_dev_connect(), and gap_dev_scan().
#define SPS_CHAR_SCAN_INT_VALUE_UUID (0x2A4F) |
scan interval characteristic uuid
#define SPS_CHAR_SCAN_REFRESH_UUID (0x2A31) |
scan refresh characteristic uuid
#define SPS_SERVICE_UUID (0x1813) |
Scan param service uuid.
#define TOTAL_CHARACTERISTIC_NUM 3 |
Referenced by heart_rate_primary_service_define(), and trans_service_primary_service_define().
#define TX_POWER_LEVEL_CHAR_UUID (0x2A07) |
Referenced by init_tx_power_service(), and pxp_monitor_characteristic_found_handler().
#define TX_POWER_LEVEL_SIZE 1 |
#define TX_POWER_SERVICE_UUID (0x1804) |
Referenced by init_tx_power_service(), pxp_monitor_service_found_handler(), and pxp_reporter_adv().
#define TXPS_CHARACTERISTIC_COUNT (1) |
count of characteristics in tx power service
Referenced by txps_primary_service_define().
#define TXPS_INCLUDED_SERVICE_COUNT (0) |
count of included service in tx power service
Referenced by txps_primary_service_define().
#define TXPS_INVALID_CHAR_HANDLE (0) |
Referenced by txps_power_read().
#define TXPS_INVALID_POWER_VALUE (0xFF) |
Referenced by txps_power_read_response().
#define TXPS_POWER_READ_LENGTH (1) |
Referenced by txps_power_read(), and txps_power_read_response().
#define TXPS_POWER_READ_OFFSET (0) |
Referenced by txps_power_read(), and txps_power_read_response().
#define UUID_MCHP_PROPRIETARY_SERVICE_16 0x55,0xE4,0x05,0xD2,0xAF,0x9F,0xA9,0x8F,0xE5,0x4A,0x7D,0xFE,0x43,0x53,0x53,0x49 |
#define UUID_MCHP_TRANS_CTRL_16 0x7e,0x3b,0x07,0xff,0x1c,0x51,0x49,0x2f,0xb3,0x39,0x8a,0x4c,0x43,0x53,0x53,0x49 |
#define UUID_MCHP_TRANS_RX_16 0xB3,0x9B,0x72,0x34,0xBE,0xEC,0xD4,0xA8,0xF4,0x43,0x41,0x88,0x43,0x53,0x53,0x49 |
#define UUID_MCHP_TRANS_TX_16 0x16,0x96,0x24,0x47,0xC6,0x23,0x61,0xBA,0xD9,0x4B,0x4D,0x1E,0x43,0x53,0x53,0x49 |
#define VALID_WIFICON_CHANGE_PARAM (0xdd) |
#define VALID_WIFISCAN_CHANGE_PARAM (0xdd) |
Referenced by wifi_provision_char_changed_handler(), and wifiscan_char_change_scanmode().
#define WIFI_CON_APPARAM_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x03\x00\x88\x77") |
Referenced by init_wifi_con_service().
#define WIFI_CON_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x01\x00\x88\x77") |
Service UUID's.
Referenced by init_wifi_con_service(), and prepare_advertisement().
#define WIFI_CON_STATE_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\x89\x86\xe4\x11\x29\xd2\x02\x00\x88\x77") |
Referenced by init_wifi_con_service().
#define WIFI_SCAN_APCOUNT_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x03\x00\x8c\xfb") |
Referenced by init_wifi_scan_service().
#define WIFI_SCAN_APDETAILS_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x00\x01\x8c\xfb") |
Referenced by init_wifi_scan_service().
#define WIFI_SCAN_MODE_CHAR_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x02\x00\x8c\xfb") |
Referenced by init_wifi_scan_service().
#define WIFI_SCAN_SERVICE_UUID ("\x1b\xc5\xd5\xa5\x02\x00\xa1\x85\xe4\x11\x24\xd2\x01\x00\x8c\xfb") |
Referenced by init_wifi_scan_service().
#define WIFICON_CHARACTERISTIC_COUNT (2) |
count of characteristics in wifi_con service
Referenced by wificon_primary_service_define().
#define WIFICON_INCLUDED_SERVICE_COUNT (0) |
count of included services in wifi_con service
Referenced by wificon_primary_service_define().
#define WIFICON_UUID_128_LEN (16) |
WIFICON_UUID_LEN the size of WIFICON service uuid.
Referenced by init_wifi_con_service(), and prepare_advertisement().
#define WIFISCAN_BASIC_CHARACTERISTIC (2) |
the two basic characteristics are scan mode and apcount
Referenced by init_wifi_scan_service(), and wifiscan_scanlist_receive().
#define WIFISCAN_CHARACTERISTIC_COUNT (WIFISCAN_BASIC_CHARACTERISTIC+WIFI_PROVISION_MAX_AP_NUM) |
count of characteristics in wifi_scan service
Referenced by init_wifi_scan_service(), and wifiscan_primary_service_define().
#define WIFISCAN_INCLUDED_SERVICE_COUNT (0) |
count of included service in wifi_scan service
Referenced by wifiscan_primary_service_define().
#define WIFISCAN_UUID_128_LEN (16) |
WIFISCAN_UUID_LEN the size of WIFISCAN service uuid.
Referenced by init_wifi_scan_service().
typedef struct adv_element adv_element_t |
advertisement data element
typedef at_ble_status_t(* ble_characteristic_changed_callback_t)(at_ble_characteristic_changed_t *) |
typedef struct ble_custom_event_cb ble_custom_event_cb_t |
typedef enum ble_device_ll_state ble_device_ll_state_t |
typedef at_ble_status_t(* ble_event_callback_t)(void *params) |
typedef void(* ble_gap_event_callback_t)(at_ble_handle_t) |
typedef struct gatt_ias_char_handler gatt_ias_char_handler_t |
typedef struct gatt_lls_char_handler gatt_lls_char_handler_t |
typedef struct gatt_service_handler gatt_service_handler_t |
GATT service handles.
typedef struct gatt_txps_char_handler gatt_txps_char_handler_t |
typedef struct gatt_wificon_char_handler gatt_wificon_char_handler_t |
typedef struct gatt_wifiscan_char_handler gatt_wifiscan_char_handler_t |
typedef enum immediate_alert_level immediate_alert_level_t |
typedef enum linkloss_alert_level linkloss_alert_level_t |
typedef struct wificon_gatt_service_handler wificon_gatt_service_handler_t |
typedef struct wifiscan_gatt_service_handler wifiscan_gatt_service_handler_t |
enum ble_device_ll_state |
enum gap_ad_type |
Gap Advertisement Types.
enum linkloss_alert_level |
void bat_init_service | ( | gatt_service_handler_t * | battery_serv, |
uint8_t * | battery_value | ||
) |
Battery service and characteristic initialization(Called only once by user).
[in] | battery_serv | battery service instance |
[in] | battery_value | not implemented |
Battery service and characteristic initialization(Called only once by user).
[in] | battery_serv | gatt service information |
[in] | battery_value | not implemented |
References AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_READ, AT_BLE_UUID_16, BAT_CHAR_BAT_LEVEL_UUID, BAT_CHAR_PRESENTATION_FORMAT_DESCRIPTOR, BAT_CHAR_PRESENTATION_FORMAT_EXPONENT, BAT_CHAR_PRESENTATION_FORMAT_NAMESPACE, BAT_CHAR_PRESENTATION_FORMAT_UNIT, BAT_CHAR_PRESENTATION_FORMAT_VALUE, BAT_SERVICE_UUID, battery_init_value, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, at_ble_char_presentation_t::description, at_ble_char_presentation_t::exponent, at_ble_char_presentation_t::format, at_ble_characteristic_t::init_value, at_ble_char_presentation_t::name_space, NULL, presentation_format, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, at_ble_uuid_t::type, at_ble_char_presentation_t::unit, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
Referenced by ble_bat_profile_init().
at_ble_status_t bat_primary_service_define | ( | gatt_service_handler_t * | battery_service | ) |
Register a battery service instance inside stack.
[in] | battery_service | battery service instance |
Register a battery service instance inside stack.
[in] | battery_service | gatt service information |
References at_ble_primary_service_define(), NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, and gatt_service_handler::serv_uuid.
Referenced by ble_bat_profile_init().
at_ble_status_t bat_update_char_value | ( | gatt_service_handler_t * | battery_serv, |
uint8_t | char_data | ||
) |
Update the battery characteristic value after defining the services using bat_primary_service_define.
[in] | battery_serv | battery service instance |
[in] | char_data | New battery level |
Update the battery characteristic value after defining the services using bat_primary_service_define.
[in] | battery_serv | gatt service information |
[in] | char_data | new characteristic value information |
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, DBG_LOG, DBG_LOG_DEV, and gatt_service_handler::serv_chars.
Referenced by ble_bat_process().
void ble_characteristic_found_handler | ( | at_ble_characteristic_found_t * | characteristic_found | ) |
function called when the AT_BLE_CHARACTERISTIC_FOUND event is received from stack.
[in] | characteristic_found | at_ble_characteristic_found_t information related to the characteristic found. |
void ble_conn_param_update | ( | at_ble_conn_param_update_done_t * | conn_param_update | ) |
function used to update the connection parameter.
[in] | conn_param_update | at_ble_conn_param_update_done_t parameters to be updated. |
function used to update the connection parameter.
References at_ble_conn_param_update_done_t::con_intv, at_ble_conn_param_update_done_t::con_latency, DBG_LOG, and at_ble_conn_param_update_done_t::superv_to.
void ble_connected_state_handler | ( | at_ble_connected_t * | conn_params | ) |
function called when the AT_BLE_CONNECTED event is received from the stack.
[in] | conn_params | connection parameters at_ble_connected_t. |
function called when the AT_BLE_CONNECTED event is received from the stack.
References at_ble_addr_t::addr, AT_BLE_SUCCESS, ble_connected_cb, ble_send_slave_sec_request(), at_ble_connected_t::conn_status, DBG_LOG, at_ble_connected_t::handle, NULL, and at_ble_connected_t::peer_addr.
void ble_device_init | ( | at_ble_addr_t * | addr | ) |
function sets both device address and device name which are exposed to all other devices.
[in] | addr | address to be set as a device address. |
function sets both device address and device name which are exposed to all other devices.
References AT_BLE_SUCCESS, BLE_DEVICE_NAME, ble_init(), BLE_PROFILE_INIT, ble_set_device_name(), DBG_LOG, and NULL.
Referenced by app_ble_wifi_provisioning(), ble_bat_init(), ble_heart_rate_init(), and ble_pxp_init().
void ble_disconnected_state_handler | ( | at_ble_disconnected_t * | disconnect | ) |
function called when the AT_BLE_DISCONNECTED event is received from the stack.
[in] | disconnect | at_ble_disconnected_t information about the disconnection. |
function called when the AT_BLE_DISCONNECTED event is received from the stack.
References ble_disconnected_cb, DBG_LOG, at_ble_disconnected_t::handle, NULL, and at_ble_disconnected_t::reason.
void ble_discovery_complete_handler | ( | at_ble_discovery_complete_t * | discover_status | ) |
function called when the AT_BLE_DISCOVERY_COMPLETE event is received from the stack.
[in] | discover_status | status of the discovery. |
|
inlinestatic |
References DBG_LOG_DEV, and UNUSED.
void ble_encryption_request_handler | ( | at_ble_encryption_request_t * | encry_req | ) |
function called when the AT_BLE_ENCRYPTION_REQUEST event is received from stack.
[in] | encry_req | encryption request from the peer device. |
function called when the AT_BLE_ENCRYPTION_REQUEST event is received from stack.
References at_ble_encryption_request_reply(), auth_info, at_ble_LTK_t::ediv, at_ble_encryption_request_t::ediv, at_ble_connected_t::handle, at_ble_LTK_t::nb, and at_ble_encryption_request_t::nb.
void ble_encryption_status_change_handler | ( | at_ble_encryption_status_changed_t * | encry_status | ) |
function called when the AT_BLE_ENCRYPTION_STATUS_CHANGED event is received from stack.
[in] | encry_status | changed encryption status. |
function called when the AT_BLE_ENCRYPTION_STATUS_CHANGED event is received from stack.
References AT_BLE_SUCCESS, ble_paired_cb, DBG_LOG, at_ble_connected_t::handle, at_ble_encryption_status_changed_t::handle, NULL, and at_ble_encryption_status_changed_t::status.
void ble_event_manager | ( | at_ble_events_t | events, |
void * | event_params | ||
) |
function handling all the events from the stack, responsible for calling the respective functions initialized for the events.
[in] | events | events received from the stack at_ble_events_t. |
[in] | event_params | data received from stack for the respective event received. |
Undefined event received
Scan info needs to be delivered either adv data or scan response data.
Refer to at_ble_scan_info_t
Scan report received at the end of scan period if AT_BLE_SCAN_GEN_DISCOVERY or AT_BLE_SCAN_LIM_DISCOVERY are used.
Refer to at_ble_scan_report_t
Used random address.
Refer to at_ble_rand_addr_changed_t
connected to a peer device.
Refer to at_ble_connected_t
peer device connection terminated.
Refer to at_ble_disconnected_t
connection parameters updated. It is required to call at_ble_conn_update_reply function to send response back if needed.
Refer to at_ble_conn_param_update_done_t
peer device asks for connection parameters update.
Refer to at_ble_conn_param_update_request_t
reported RX power value.
Refer to at_ble_rx_power_value_t
Pairing procedure is completed.
Refer to at_ble_pair_done_t
A central device asks for Pairing.
Refer to at_ble_pair_request_t
Slave security request.
Refer to at_ble_slave_sec_request_t
A passkey or OOB data is requested as part of pairing procedure.
Refer to at_ble_pair_key_request_t
Encryption is requested by a master device.
Refer to at_ble_encryption_request_t
Encryption status changed.
Refer to at_ble_encryption_status_changed_t
Resolve random address status.
Refer to at_ble_resolv_rand_addr_status_t
A primary service is found.
Refer to at_ble_primary_service_found_t
An included service is found .
Refer to at_ble_included_service_found_t
A Characteristic is found.
Refer to at_ble_characteristic_found_t
A descriptor is found.
Refer to at_ble_descriptor_found_t
A discover operation has completed.
Refer to at_ble_discovery_complete_t
Characteristic read procedure is done.
Refer to at_ble_characteristic_read_response_t
Characteristic multiple read procedure is done.
Refer to at_ble_characteristic_read_response_t
Characteristic write procedure is done.
Refer to at_ble_characteristic_write_response_t
A Notification is received.
Refer to at_ble_notification_received_t
An Indication is received.
Refer to at_ble_indication_received_t
The peer confirmed that it has received an Indication.
Refer to at_ble_indication_confirmed_t
The peer has changed a characteristic value.
Refer to at_ble_characteristic_changed_t
The peer has confirmed that it has received the service changed notification.
Refer to at_ble_service_changed_notification_confirmed_t
The peer asks for a write Authorization.
Refer to at_ble_write_authorize_request_t
The peer asks for a read Authorization.
Refer to at_ble_read_authorize_request_t
An L2CAP packet received from a registered custom CID.
Refer to at_ble_l2cap_rx_t
A user-defined event is delivered to the system
References AT_BLE_CHARACTERISTIC_CHANGED, AT_BLE_CHARACTERISTIC_FOUND, AT_BLE_CHARACTERISTIC_READ_MULTIBLE_RESPONSE, AT_BLE_CHARACTERISTIC_READ_RESPONSE, AT_BLE_CHARACTERISTIC_WRITE_RESPONSE, AT_BLE_CONN_PARAM_UPDATE_DONE, AT_BLE_CONN_PARAM_UPDATE_REQUEST, AT_BLE_CONNECTED, AT_BLE_CUSTOM_EVENT, AT_BLE_DESCRIPTOR_FOUND, AT_BLE_DISCONNECTED, AT_BLE_DISCOVERY_COMPLETE, AT_BLE_ENCRYPTION_REQUEST, AT_BLE_ENCRYPTION_STATUS_CHANGED, AT_BLE_INCLUDED_SERVICE_FOUND, AT_BLE_INDICATION_CONFIRMED, AT_BLE_INDICATION_RECEIVED, AT_BLE_L2CAP_RX, AT_BLE_NOTIFICATION_RECEIVED, AT_BLE_PAIR_DONE, AT_BLE_PAIR_KEY_REQUEST, AT_BLE_PAIR_REQUEST, AT_BLE_PRIMARY_SERVICE_FOUND, AT_BLE_RAND_ADDR_CHANGED, AT_BLE_READ_AUTHORIZE_REQUEST, AT_BLE_RESOLV_RAND_ADDR_STATUS, AT_BLE_RX_POWER_VALUE, AT_BLE_SCAN_INFO, AT_BLE_SCAN_REPORT, AT_BLE_SERVICE_CHANGED_NOTIFICATION_CONFIRMED, AT_BLE_SLAVE_SEC_REQUEST, AT_BLE_UNDEFINED_EVENT, AT_BLE_WRITE_AUTHORIZE_REQUEST, ble_char_changed_cb, BLE_CHARACTERISTIC_CHANGED, BLE_CHARACTERISTIC_FOUND_HANDLER, BLE_CHARACTERISTIC_READ_RESPONSE, BLE_CHARACTERISTIC_WRITE_RESPONSE, BLE_CONN_PARAM_UPDATE_DONE, BLE_CONNECTED_STATE_HANDLER, BLE_DESCRIPTOR_FOUND_HANDLER, BLE_DISCONNECTED_STATE_HANDLER, BLE_DISCOVERY_COMPLETE_HANDLER, BLE_ENCRYPTION_REQUEST, BLE_ENCRYPTION_STATUS_CHANGED, BLE_NOTIFICATION_RECEIVED_HANDLER, BLE_PAIR_DONE, BLE_PAIR_KEY_REQUEST, BLE_PAIR_REQUEST, BLE_PRIMARY_SERVICE_FOUND_HANDLER, BLE_SCAN_INFO_HANDLER, BLE_SCAN_REPORT_HANDLER, BLE_SERVICE_CHANGED, BLE_SLAVE_SEC_REQUEST, DBG_LOG_DEV, and NULL.
Referenced by app_ble_wifi_provisioning(), ble_bat_process_event(), ble_event_task(), ble_heart_rate_process_event(), and ble_pxp_process_event().
at_ble_status_t ble_event_task | ( | void | ) |
function to handle the BLE event task.
function to handle the BLE event task.
function to get event from stack
References at_ble_event_get(), AT_BLE_FAILURE, AT_BLE_SUCCESS, ble_event_manager(), BLE_EVENT_TIMEOUT, and params.
Referenced by pxp_monitor_start_scan().
at_ble_status_t ble_pair_done_handler | ( | at_ble_pair_done_t * | pairing_params | ) |
function called when the AT_BLE_PAIR_DONE event is received from stack.
[in] | pairing_params | at_ble_pair_done_t pair done information. |
function called when the AT_BLE_PAIR_DONE event is received from stack.
References app_device_bond, at_ble_disconnect(), AT_BLE_SUCCESS, AT_BLE_TERMINATED_BY_USER, at_ble_pair_done_t::auth, auth_info, ble_paired_cb, DBG_LOG, at_ble_connected_t::handle, at_ble_pair_done_t::handle, NULL, and at_ble_pair_done_t::status.
void ble_pair_key_request_handler | ( | at_ble_pair_key_request_t * | pair_key | ) |
function called when the AT_BLE_PAIR_KEY_REQUEST event is received from stack.
[in] | pair_key | at_ble_pair_key_request_t key details for the pairing request. |
function called when the AT_BLE_PAIR_KEY_REQUEST event is received from stack.
References at_ble_disconnect(), AT_BLE_FAILURE, at_ble_pair_key_reply(), AT_BLE_PAIR_PASSKEY, AT_BLE_PAIR_PASSKEY_DISPLAY, AT_BLE_PAIR_PASSKEY_ENTRY, AT_BLE_PASSKEY_LEN, AT_BLE_SUCCESS, AT_BLE_TERMINATED_BY_USER, DBG_LOG, DBG_LOG_CONT, DBG_LOG_DEV, at_ble_pair_key_request_t::handle, at_ble_pair_key_request_t::passkey_type, and at_ble_pair_key_request_t::type.
void ble_pair_request_handler | ( | at_ble_pair_request_t * | at_ble_pair_req | ) |
function called when the AT_BLE_PAIR_REQUEST event is received from stack.
[in] | at_ble_pair_req | at_ble_pair_request_t details for the pairing request from the peer. |
function called when the AT_BLE_PAIR_REQUEST event is received from stack.
References app_device_bond, at_ble_authenticate(), AT_BLE_IO_CAP_DISPLAY_ONLY, AT_BLE_KEY_DIST_ENC, AT_BLE_MODE1_L3_AUTH_PAIR_ENC, AT_BLE_SUCCESS, at_ble_pair_features_t::bond, DBG_LOG, at_ble_pair_features_t::desired_auth, at_ble_LTK_t::ediv, at_ble_connected_t::handle, at_ble_pair_features_t::initiator_keys, at_ble_pair_features_t::io_capabilities, at_ble_LTK_t::key, at_ble_LTK_t::key_size, at_ble_pair_features_t::max_key_size, at_ble_pair_features_t::min_key_size, at_ble_pair_features_t::mitm_protection, at_ble_LTK_t::nb, NULL, at_ble_pair_features_t::oob_available, and at_ble_pair_features_t::responder_keys.
at_ble_status_t ble_scan_info_handler | ( | at_ble_scan_info_t * | scan_param | ) |
function to handle the scan information.
[in] | scan_param | scan data. |
function to handle the scan information.
References at_ble_addr_t::addr, AT_BLE_FAILURE, AT_BLE_SUCCESS, DBG_LOG, DBG_LOG_DEV, at_ble_scan_info_t::dev_addr, MAX_SCAN_DEVICE, and scan_response_count.
at_ble_status_t ble_scan_report_handler | ( | at_ble_scan_report_t * | scan_report | ) |
function to handle the scan status.
[in] | scan_report | status of the scan. |
function to handle the scan status.
References AT_BLE_FAILURE, AT_BLE_SUCCESS, BLE_SCAN_DATA_HANDLER, DBG_LOG, scan_response_count, and at_ble_scan_report_t::status.
at_ble_status_t ble_send_slave_sec_request | ( | at_ble_handle_t | conn_handle | ) |
function to send slave security request.
[in] | conn_handle | connection handle. |
function to send slave security request.
References AT_BLE_FAILURE, at_ble_send_slave_sec_request(), AT_BLE_SUCCESS, DBG_LOG, and DBG_LOG_DEV.
Referenced by ble_connected_state_handler().
at_ble_status_t ble_set_device_name | ( | uint8_t * | name, |
uint8_t | name_len | ||
) |
function to set the device name.
[in] | name | name of the device. |
[in] | name_len | length of the device name. |
function to set the device name.
References at_ble_device_name_set(), AT_BLE_INVALID_PARAM, and NULL.
Referenced by ble_device_init().
void ble_slave_security_handler | ( | at_ble_slave_sec_request_t * | slave_sec_req | ) |
slave security handler
References app_device_bond, at_ble_authenticate(), AT_BLE_IO_CAP_KB_DISPLAY, AT_BLE_KEY_DIST_ENC, AT_BLE_SUCCESS, BLE_AUTHENTICATION_LEVEL, at_ble_pair_features_t::bond, at_ble_slave_sec_request_t::bond, DBG_LOG, DBG_LOG_DEV, at_ble_pair_features_t::desired_auth, at_ble_LTK_t::ediv, at_ble_slave_sec_request_t::handle, at_ble_pair_features_t::initiator_keys, at_ble_pair_features_t::io_capabilities, at_ble_LTK_t::key, at_ble_LTK_t::key_size, at_ble_pair_features_t::max_key_size, at_ble_pair_features_t::min_key_size, at_ble_pair_features_t::mitm_protection, at_ble_slave_sec_request_t::mitm_protection, at_ble_LTK_t::nb, NULL, at_ble_pair_features_t::oob_available, and at_ble_pair_features_t::responder_keys.
|
inlinestatic |
References AT_BLE_SUCCESS, DBG_LOG_DEV, and UNUSED.
at_ble_status_t gap_dev_connect | ( | at_ble_addr_t | dev_addr[] | ) |
function requesting the device for the connection.
[in] | dev_addr | address of the the peer device. |
at_ble_status_t gap_dev_scan | ( | void | ) |
function to start scan.
function to start scan.
References AT_BLE_SCAN_GEN_DISCOVERY, at_ble_scan_start(), DBG_LOG, SCAN_INTERVAL, scan_response_count, SCAN_TIMEOUT, SCAN_TYPE, and SCAN_WINDOW.
Referenced by pxp_monitor_scan_data_handler(), and pxp_monitor_start_scan().
void heart_rate_init_service | ( | gatt_service_handler_t * | heart_rate_serv, |
uint8_t * | heart_rate_value | ||
) |
Heart rate service and characteristic initialization(Called only once by user).
[in] | heart_rate_serv | heart rate service instance |
[in] | heart_rate_value | heart rate value |
Heart rate service and characteristic initialization(Called only once by user).
[in] | heart_rate_serv | gatt service information |
References AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_REQ_AUTHR, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_READ, AT_BLE_CHAR_WRITE, AT_BLE_UUID_16, BODY_SENSOR_LOCATION_CHAR_UUID, body_sensor_location_value, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, HEART_RATE_CONTROL_POINT_CHAR_UUID, HEART_RATE_MEASUREMENT_CHAR_UUID, HEART_RATE_SERVICE_UUID, hr_control_point_value, hr_measurement_value, HR_MM_EX_SIZE, HR_MM_FLAGS_SIZE, HR_MM_RR_SIZE, HR_MM_VAL_SIZE, at_ble_characteristic_t::init_value, NULL, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
Referenced by ble_heart_rate_profile_init().
at_ble_status_t heart_rate_primary_service_define | ( | gatt_service_handler_t * | heart_rate_service | ) |
Register a heart rate service instance inside stack.
[in] | heart_rate_service | heart rate service instance |
Register a heart rate service instance inside stack.
[in] | heart_rate_service | gatt service information |
References at_ble_primary_service_define(), NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, and TOTAL_CHARACTERISTIC_NUM.
Referenced by ble_heart_rate_profile_init().
at_ble_status_t heart_rate_update_char_value | ( | gatt_service_handler_t * | heart_rate_serv, |
uint8_t * | char_data, | ||
uint8_t | length | ||
) |
Update the heart rate characteristic value after defining the services using bat_primary_service_define.
[in] | heart_rate_serv | heart rate service instance |
[in] | char_data | New heart rate value |
[in] | length | Length of new heart rate value |
Update the heart rate characteristic value after defining the services using bat_primary_service_define.
[in] | heart_rate_serv | gatt service information |
[in] | char_data | New heart rate value |
[in] | length | Length of new heart rate value |
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, DBG_LOG_DEV, and gatt_service_handler::serv_chars.
Referenced by heart_rate_send_notification().
at_ble_status_t ias_alert_level_write | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle, | ||
immediate_alert_level_t | alert_level | ||
) |
write a characteristic to Immediate Alert Characteristics
if with_response is True, write completion will be reported via AT_BLE_CHARACTERISTIC_WRITE_RESPONSE event
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
[in] | alert | level need to write |
if with_response is True, write completion will be reported via AT_BLE_CHARACTERISTIC_WRITE_RESPONSE event
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
[in] | alert_level | alert level need to write |
References at_ble_characteristic_write(), IAS_NO_SIGNED_WRITE, IAS_WRITE_LENGTH, IAS_WRITE_OFFSET, and IAS_WRITE_WITH_RESPONSE.
at_ble_status_t ias_primary_service_define | ( | gatt_service_handler_t * | ias_primary_service | ) |
Defining Immediate alert service to the attribute data base.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Defining Immediate alert service to the attribute data base.
References at_ble_primary_service_define(), IAS_CHARACTERISTIC_COUNT, IAS_INCLUDED_SERVICE_COUNT, NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, and gatt_service_handler::serv_uuid.
Referenced by pxp_service_define().
uint8_t ias_set_alert_value | ( | at_ble_characteristic_changed_t * | change_params, |
gatt_service_handler_t * | ias_handler | ||
) |
sets the alert value of the immediate alert service
[in] | gatt_service_handler_t | the service info which has handle range,uuid and characteristic array fields |
[in] | at_ble_characteristic_changed_t | the information of the characteristic changed. |
sets the alert value of the immediate alert service
References at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_t::char_val_handle, INVALID_IAS_PARAM, and gatt_service_handler::serv_chars.
Referenced by pxp_reporter_char_changed_handler().
void init_immediate_alert_service | ( | gatt_service_handler_t * | immediate_alert_serv | ) |
Initialize the Immediate alert service with default values.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Initialize the Immediate alert service with default values.
References ALERT_LEVEL_CHAR_UUID, AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE, AT_BLE_UUID_16, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, immediate_alert_initial_value, IMMEDIATE_ALERT_SERVICE_UUID, at_ble_characteristic_t::init_value, NULL, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
Referenced by pxp_service_init().
void init_linkloss_service | ( | gatt_service_handler_t * | linkloss_serv | ) |
Initialize the linkloss service with default values.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Initialize the linkloss service with default values.
References ALERT_LEVEL_CHAR_UUID, AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_READ, AT_BLE_CHAR_WRITE, AT_BLE_UUID_16, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, at_ble_characteristic_t::init_value, LINK_LOSS_SERVICE_UUID, linkloss_initial_value, NULL, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
Referenced by pxp_service_init().
void init_tx_power_service | ( | gatt_service_handler_t * | tx_power_serv | ) |
Initialize the tx power service with default values.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Initialize the tx power service with default values.
References AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_READ, AT_BLE_UUID_16, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, at_ble_characteristic_t::init_value, NULL, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, tx_power_initial_value, TX_POWER_LEVEL_CHAR_UUID, TX_POWER_SERVICE_UUID, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
Referenced by pxp_service_init().
void init_wifi_con_service | ( | wificon_gatt_service_handler_t * | wificon_handle | ) |
Initialize the wifi_con service with default values.
[in] | wificon_handle | the service info which has handle (range,uuid and characteristic array fields) |
Initialize the wifi_con service with default values.
References APPARAM_MAX_LEN, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_INDICATE, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_READ, AT_BLE_CHAR_WRITE, AT_BLE_UUID_128, CHAR_USER_STR_WIFICON_APPARAM, CHAR_USER_STR_WIFICON_APPARAM_LEN, CHAR_USER_STR_WIFICON_STATE, CHAR_USER_STR_WIFICON_STATE_LEN, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, init_ap_param, init_connect_state, at_ble_characteristic_t::init_value, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, wificon_gatt_service_handler::serv_chars, wificon_gatt_service_handler::serv_handle, wificon_gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, at_ble_characteristic_t::value_permissions, WIFI_CON_APPARAM_CHAR_UUID, WIFI_CON_SERVICE_UUID, WIFI_CON_STATE_CHAR_UUID, wificon_char_pres_fmt_struct, wificon_char_pres_fmt_uint8, and WIFICON_UUID_128_LEN.
Referenced by wifi_provision_service_init().
void init_wifi_scan_service | ( | wifiscan_gatt_service_handler_t * | wifiscan_handle | ) |
Initialize the wifi_scan service with default values.
[in] | wifiscan_handle | the service info which has handle range,uuid and characteristic array fields |
Initialize the wifi_scan service with default values.
References APDETAILS_MAX_LEN, AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_INDICATE, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_READ, AT_BLE_CHAR_WRITE, AT_BLE_UUID_128, CHAR_USER_STR_WIFISCAN_APDETAILS, CHAR_USER_STR_WIFISCAN_APDETAILS_LEN, CHAR_USER_STR_WIFISCAN_SCANMODE, CHAR_USER_STR_WIFISCAN_SCANMODE_LEN, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, init_ap_count, init_ap_details, init_scan_mode, at_ble_characteristic_t::init_value, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, wifiscan_gatt_service_handler::serv_chars, wifiscan_gatt_service_handler::serv_handle, wifiscan_gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, at_ble_characteristic_t::value_permissions, WIFI_SCAN_APCOUNT_CHAR_UUID, WIFI_SCAN_APDETAILS_CHAR_UUID, WIFI_SCAN_MODE_CHAR_UUID, WIFI_SCAN_SERVICE_UUID, WIFISCAN_BASIC_CHARACTERISTIC, wifiscan_char_pres_fmt_struct, wifiscan_char_pres_fmt_uint8, WIFISCAN_CHARACTERISTIC_COUNT, and WIFISCAN_UUID_128_LEN.
Referenced by wifi_provision_service_init().
at_ble_status_t lls_alert_level_read | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle | ||
) |
Send the Read request to link loss handler Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
Send the Read request to link loss handler Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
References at_ble_characteristic_read(), AT_BLE_INVALID_HANDLE, LLS_INVALID_CHAR_HANDLE, LLS_READ_LENGTH, and LLS_READ_OFFSET.
at_ble_status_t lls_alert_level_write | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle, | ||
link_loss_alert_level_t | alert_level | ||
) |
write a characteristic to Link Loss Characteristics
if with_response is True, write completion will be reported via AT_BLE_CHARACTERISTIC_WRITE_RESPONSE event
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
[in] | alert | level need to write |
References at_ble_characteristic_write(), LLS_NO_SIGNED_WRITE, LLS_WRITE_LENGTH, LLS_WRITE_OFFSET, and LLS_WRITE_WITH_RESPONSE.
Referenced by pxp_monitor_discovery_complete_handler().
int8_t lls_alert_read_response | ( | at_ble_characteristic_read_response_t * | read_resp, |
gatt_lls_char_handler_t * | lls_handler | ||
) |
Read Link Loss Alert Value.
[in] | read_value | read response data available form at_ble_characteristic_read_response_t |
[in] | read_value | read response data available form at_ble_characteristic_read_response_t |
References gatt_lls_char_handler::char_data, gatt_lls_char_handler::char_handle, at_ble_characteristic_read_response_t::char_handle, at_ble_characteristic_read_response_t::char_value, DBG_LOG, DBG_LOG_CONT, LLS_HIGH_ALERT, LLS_LOW_ALERT, LLS_NO_ALERT, LLS_READ_LENGTH, LLS_READ_OFFSET, and LLS_READ_RESP_INVALID.
Referenced by pxp_monitor_characteristic_read_response().
at_ble_status_t lls_primary_service_define | ( | gatt_service_handler_t * | lls_service | ) |
Defining linkloss service to the attribute data base.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Defining linkloss service to the attribute data base.
References at_ble_primary_service_define(), LLS_CHARACTERISTIC_COUNT, LLS_INCLUDED_SERVICE_COUNT, NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, and gatt_service_handler::serv_uuid.
Referenced by pxp_service_define().
uint8_t lls_set_alert_value | ( | at_ble_characteristic_changed_t * | change_params, |
gatt_service_handler_t * | lls_handler | ||
) |
sets the alert value of the Linkloss service
[in] | gatt_service_handler_t | the service info which has handle range,uuid and characteristic array fields |
[in] | at_ble_characteristic_changed_t | the information of the characteristic changed. |
sets the alert value of the Linkloss service
References at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_t::char_val_handle, DBG_LOG, INVALID_LLS_PARAM, and gatt_service_handler::serv_chars.
Referenced by pxp_reporter_char_changed_handler().
void register_ble_characteristic_changed_cb | ( | ble_characteristic_changed_callback_t | char_changed_cb_fn | ) |
Register callback function, to be triggered when characteristic value is changed.
[in] | char_changed_cb_fn | function called when characteristic value is changed. |
Register callback function, to be triggered when characteristic value is changed.
References ble_char_changed_cb.
void register_ble_connected_event_cb | ( | ble_gap_event_callback_t | connected_cb_fn | ) |
Register callback function, to be triggered when connected to the device.
[in] | connected_cb_fn | function called when disconnected from the device. |
Register callback function, to be triggered when connected to the device.
References ble_connected_cb.
Referenced by initialise_provisioning_app().
void register_ble_disconnected_event_cb | ( | ble_gap_event_callback_t | disconnected_cb_fn | ) |
Register callback function, to be triggered when disconnected from the peer device.
[in] | disconnected_cb_fn | function called when disconnected from the peer device. |
Register callback function, to be triggered when disconnected from the peer device.
References ble_disconnected_cb.
Referenced by ble_bat_profile_init(), ble_heart_rate_profile_init(), and initialise_provisioning_app().
void register_ble_paired_event_cb | ( | ble_gap_event_callback_t | paired_cb_fn | ) |
Register callback function, to be triggered when pairing procedure is completed.
[in] | paired_cb_fn | function called when pairing is completed. |
Register callback function, to be triggered when pairing procedure is completed.
References ble_paired_cb.
Referenced by ble_bat_profile_init(), ble_heart_rate_profile_init(), and initialise_provisioning_app().
uint8_t scan_info_parse | ( | at_ble_scan_info_t * | scan_info_data, |
at_ble_uuid_t * | ble_service_uuid, | ||
uint8_t | adv_type | ||
) |
function parses the received advertising data for service and local name.
[in] | scan_info_data | the received data. |
[in] | ble_service_uuid | uuid to be searched in the received data. |
[in] | adv_type | advertisement type |
References at_ble_scan_info_t::adv_data, at_ble_scan_info_t::adv_data_len, AT_BLE_FAILURE, AT_BLE_SUCCESS, AT_BLE_UUID_128, AT_BLE_UUID_128_LEN, AT_BLE_UUID_16, AT_BLE_UUID_16_LEN, AT_BLE_UUID_32, AT_BLE_UUID_32_LEN, adv_element::data, adv_element::len, adv_element::type, at_ble_uuid_t::type, and at_ble_uuid_t::uuid.
Referenced by pxp_monitor_scan_data_handler().
void trans_service_init | ( | gatt_service_handler_t * | trans_service | ) |
transparent service and characteristic initialization(Called only once by user).
[in] | trans_service | trans service instance |
transparent service and characteristic initialization(Called only once by user).
[in] | trans_service | gatt service information |
References AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_WRITE, AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE, AT_BLE_UUID_128, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, at_ble_characteristic_t::client_config_permissions, at_ble_characteristic_t::init_value, NULL, at_ble_characteristic_t::presentation_format, at_ble_characteristic_t::properties, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, at_ble_characteristic_t::server_config_handle, at_ble_characteristic_t::server_config_permissions, trans_ctrl, trans_rx, trans_tx, at_ble_uuid_t::type, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_max_len, at_ble_characteristic_t::user_desc_permissions, at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_characteristic_t::value_init_len, at_ble_characteristic_t::value_max_len, and at_ble_characteristic_t::value_permissions.
at_ble_status_t trans_service_primary_service_define | ( | gatt_service_handler_t * | trans_service | ) |
Register a transparent service instance inside stack.
[in] | trans_service | trans service instance |
Register a transparent service instance inside stack.
[in] | trans_service | gatt service information |
References at_ble_primary_service_define(), AT_BLE_SUCCESS, NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, and TOTAL_CHARACTERISTIC_NUM.
at_ble_status_t trans_update_ctrl_char_value | ( | gatt_service_handler_t * | trans_service, |
uint8_t * | trans_ctrl_value, | ||
uint8_t | len | ||
) |
Ctrl characteristic value after defining the services using bat_primary_service_define.
[in] | trans_service | trans service instance |
[in] | trans_ctrl_value | value for ctrl |
[in] | len | of Tx value |
Ctrl characteristic value after defining the services using bat_primary_service_define.
References at_ble_characteristic_value_get(), at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, DBG_LOG, enable_credit_based_fc, gatt_service_handler::serv_chars, status, and trans_ctrl_notification_flag.
at_ble_status_t trans_update_tx_char_value | ( | gatt_service_handler_t * | trans_service, |
uint8_t * | trans_tx_value, | ||
uint8_t | len | ||
) |
Tx characteristic value after defining the services using bat_primary_service_define.
[in] | trans_service | trans service instance |
[in] | trans_tx_value | value for Tx |
[in] | len | of Tx value |
Tx characteristic value after defining the services using bat_primary_service_define.
References at_ble_characteristic_value_set(), at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, DBG_LOG, gatt_service_handler::serv_chars, status, and trans_tx_notification_flag.
at_ble_status_t txps_power_read | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle | ||
) |
Send the Read Request to Tx Power service.
Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
References at_ble_characteristic_read(), AT_BLE_INVALID_HANDLE, TXPS_INVALID_CHAR_HANDLE, TXPS_POWER_READ_LENGTH, and TXPS_POWER_READ_OFFSET.
Referenced by pxp_monitor_discovery_complete_handler().
int8_t txps_power_read_response | ( | at_ble_characteristic_read_response_t * | char_read_resp, |
gatt_txps_char_handler_t * | txps_handler | ||
) |
Read a Tx Power.
[in] | read_value | read response data available form at_ble_characteristic_read_response_t |
References gatt_txps_char_handler::char_data, gatt_txps_char_handler::char_handle, at_ble_characteristic_read_response_t::char_handle, at_ble_characteristic_read_response_t::char_value, DBG_LOG, TXPS_INVALID_POWER_VALUE, TXPS_POWER_READ_LENGTH, and TXPS_POWER_READ_OFFSET.
Referenced by pxp_monitor_characteristic_read_response().
at_ble_status_t txps_primary_service_define | ( | gatt_service_handler_t * | txps_primary_service | ) |
Defining the tx power service to the attribute data base.
[in] | gatt_service_handler_t | the service info which has handle (range,uuid and characteristic array fields) |
Defining the tx power service to the attribute data base.
References at_ble_primary_service_define(), NULL, gatt_service_handler::serv_chars, gatt_service_handler::serv_handle, gatt_service_handler::serv_uuid, TXPS_CHARACTERISTIC_COUNT, and TXPS_INCLUDED_SERVICE_COUNT.
Referenced by pxp_service_define().
uint8_t wificon_char_change_apparam | ( | at_ble_characteristic_changed_t * | param, |
wificon_gatt_service_handler_t * | wificon_handle | ||
) |
wificon service apparam characteristics change
[in] | param | changed parameter |
[in] | wificon_handle | the service info which has handle range,uuid and characteristic array fields |
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_len, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_t::char_val_handle, FAILED_WIFICON_CHANGE_PARAM, INVALID_WIFICON_CHANGE_PARAM, wificon_gatt_service_handler::serv_chars, and VALID_WIFICON_CHANGE_PARAM.
Referenced by wifi_provision_char_changed_handler().
uint8_t wificon_char_change_state_client_cfg | ( | at_ble_characteristic_changed_t * | param, |
wificon_gatt_service_handler_t * | wificon_handle | ||
) |
wificon service state characteristics client config change
[in] | param | changed parameter |
[in] | wificon_handle | the service info which has handle (range,uuid and characteristic array fields) |
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_len, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_t::client_config_handle, FAILED_WIFICON_CHANGE_PARAM, INVALID_WIFICON_CHANGE_PARAM, wificon_gatt_service_handler::serv_chars, and VALID_WIFICON_CHANGE_PARAM.
Referenced by wifi_provision_char_changed_handler().
at_ble_status_t wificon_connect_noti | ( | wificon_gatt_service_handler_t * | wificon_handler, |
uint8_t | s | ||
) |
notification on the wifi connecting progress
[in] | wificon_handler | the service info which has handle (range,uuid and characteristic array fields) |
[in] | s | Connected state NOTIFY_STATE_PROVISIONFAILED, NOTIFY_STATE_WIFICONNECTING or NOTIFY_STATE_PROVISIONED |
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, connect_state, and wificon_gatt_service_handler::serv_chars.
Referenced by inform_wifi_connection_state().
at_ble_status_t wificon_primary_service_define | ( | wificon_gatt_service_handler_t * | wificon_primary_service | ) |
Defining the wifi_con service to the attribute data base.
[in] | wificon_primary_service | the service info which has handle (range,uuid and characteristic array fields) |
Defining the wifi_con service to the attribute data base.
References at_ble_primary_service_define(), NULL, wificon_gatt_service_handler::serv_chars, wificon_gatt_service_handler::serv_handle, wificon_gatt_service_handler::serv_uuid, WIFICON_CHARACTERISTIC_COUNT, and WIFICON_INCLUDED_SERVICE_COUNT.
Referenced by wifi_provision_define().
uint8_t wifiscan_char_change_scanmode | ( | at_ble_characteristic_changed_t * | p, |
wifiscan_gatt_service_handler_t * | wifiscan_handle | ||
) |
wifiscan service scan mode characteristics change
[in] | p | characteristic changed |
[in] | wifiscan_handle | the wifi scan handle |
wifiscan service scan mode characteristics change
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_len, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_t::char_val_handle, FAILED_WIFISCAN_CHANGE_PARAM, INVALID_WIFISCAN_CHANGE_PARAM, wifiscan_gatt_service_handler::serv_chars, and VALID_WIFISCAN_CHANGE_PARAM.
Referenced by wifi_provision_char_changed_handler().
at_ble_status_t wifiscan_primary_service_define | ( | wifiscan_gatt_service_handler_t * | wifiscan_primary_service | ) |
Defining the wifi_scan service to the attribute data base.
[in] | wifiscan_primary_service | the service info which has handle range,uuid and characteristic array fields |
Defining the wifi_scan service to the attribute data base.
References at_ble_primary_service_define(), NULL, wifiscan_gatt_service_handler::serv_chars, wifiscan_gatt_service_handler::serv_handle, wifiscan_gatt_service_handler::serv_uuid, WIFISCAN_CHARACTERISTIC_COUNT, and WIFISCAN_INCLUDED_SERVICE_COUNT.
Referenced by wifi_provision_define().
void wifiscan_print_char | ( | wifiscan_gatt_service_handler_t * | wifiscan_handler | ) |
utility function to retrieve and print out characteristics (scanmode and ap_num)
[in] | wifiscan_handler | the wifi scan handler |
References at_ble_characteristic_value_get(), at_ble_characteristic_t::char_val_handle, and wifiscan_gatt_service_handler::serv_chars.
at_ble_status_t wifiscan_scanlist_receive | ( | wifiscan_gatt_service_handler_t * | wifiscan_serv, |
wifi_provision_scanlist * | param, | ||
uint8_t * | num_ap_found | ||
) |
update wifiscan scan list
[in] | wifiscan_serv | wifiscan service |
[in] | param | pointer to variable to be updated with number of APs found |
[in] | num_ap_found | number of APs found |
update wifiscan scan list
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, num_ap, wifi_provision_scanlist::num_valid, ap_details_t::rssi, _scanitem::rssi, wifi_provision_scanlist::scandetails, ap_details_t::sec_type, _scanitem::sec_type, wifiscan_gatt_service_handler::serv_chars, _scanitem::ssid, ap_details_t::ssidLen, WIFI_PROVISION_MAX_SSID_LENGTH, and WIFISCAN_BASIC_CHARACTERISTIC.
Referenced by wifi_provision_scanlist_receive().
at_ble_status_t wifiscan_update_scanmode_char_value | ( | wifiscan_gatt_service_handler_t * | wifiscan_serv, |
uint8_t | char_data | ||
) |
update wifiscan scan mode
[in] | wifiscan_serv | wifiscan service |
[in] | char_data | characteristics data |
update wifiscan scan mode
References at_ble_characteristic_value_set(), AT_BLE_FAILURE, at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, scan_mode, and wifiscan_gatt_service_handler::serv_chars.
Referenced by wifi_provision_scanmode_update().