Bas MultiPeripheral/ Find Me Central declarations.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | bas_app_state |
struct | fmp_app_state |
Macros | |
#define | AD_TYPE_COMPLETE_LIST_UUID 0x03 |
#define | APP_BAS_ADV_TIMEOUT (60) |
APP_BAS_ADV_TIMEOUT Advertising time-out between 0x0001 and 0x028F in seconds, 0x0000 disables time-out. More... | |
#define | APP_BAS_FAST_ADV (1600) |
APP_BAS_FAST_ADV between 0x0020 and 0x4000 in 0.625 ms units (20ms to 10.24s). More... | |
#define | BAS_MAX_DEVICE_CONNECTION (7) |
#define | BATTERY_MAX_LEVEL (100) |
#define | BATTERY_MIN_LEVEL (0) |
#define | BATTERY_UPDATE_INTERVAL (1) |
#define | FMP_ASCII_TO_DECIMAL_VALUE ('0') |
Typedefs | |
typedef struct bas_app_state | bas_app_state_t |
typedef enum bas_notification_state | bas_notification_state_t |
typedef struct fmp_app_state | fmp_app_state_t |
typedef enum fmp_scan_state | fmp_scan_state_t |
Enumerations | |
enum | bas_notification_state { BAS_NOTIFICATION_DISABLED, BAS_NOTIFICATION_ENABLED, BAS_NOTIFICATION_SENT, BAS_NOTIFICATION_CONFIRMED } |
enum | fmp_scan_state { FMP_SCANNING, FMP_IDLE, FMP_CONNECTED } |
Functions | |
at_ble_status_t | app_connect_request (at_ble_scan_info_t *scan_buffer, uint8_t index) |
Connect to a peer device. More... | |
static void | fmp_simulation_task (void) |
Find me sending the alert level to peer devices after checking the rssi. More... | |
#define AD_TYPE_COMPLETE_LIST_UUID 0x03 |
Referenced by ble_scan_report_app_event(), and pxp_monitor_scan_data_handler().
#define APP_BAS_ADV_TIMEOUT (60) |
APP_BAS_ADV_TIMEOUT Advertising time-out between 0x0001 and 0x028F in seconds, 0x0000 disables time-out.
#define APP_BAS_FAST_ADV (1600) |
APP_BAS_FAST_ADV between 0x0020 and 0x4000 in 0.625 ms units (20ms to 10.24s).
#define BAS_MAX_DEVICE_CONNECTION (7) |
#define BATTERY_MAX_LEVEL (100) |
#define BATTERY_MIN_LEVEL (0) |
#define BATTERY_UPDATE_INTERVAL (1) |
#define FMP_ASCII_TO_DECIMAL_VALUE ('0') |
Referenced by ble_scan_report_app_event().
typedef struct bas_app_state bas_app_state_t |
typedef enum bas_notification_state bas_notification_state_t |
typedef struct fmp_app_state fmp_app_state_t |
typedef enum fmp_scan_state fmp_scan_state_t |
enum fmp_scan_state |
at_ble_status_t app_connect_request | ( | at_ble_scan_info_t * | scan_buffer, |
uint8_t | index | ||
) |
Connect to a peer device.
References AT_BLE_FAILURE, AT_BLE_SUCCESS, DBG_LOG, at_ble_scan_info_t::dev_addr, fmp_app_state::fmp_peer_address, and gap_dev_connect().
Referenced by ble_scan_report_app_event().
|
static |
Find me sending the alert level to peer devices after checking the rssi.