Microchip® Advanced Software Framework

multirole_peripheral_multiconnect.h File Reference

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
#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 BATTERY_MAX_LEVEL   (100)
#define BATTERY_MIN_LEVEL   (0)
#define BATTERY_UPDATE_INTERVAL   (1)
#define FMP_ASCII_TO_DECIMAL_VALUE   ('0')

Enumerator
BAS_NOTIFICATION_DISABLED 
BAS_NOTIFICATION_ENABLED 
BAS_NOTIFICATION_SENT 
BAS_NOTIFICATION_CONFIRMED 
Enumerator
FMP_SCANNING 
FMP_IDLE 
FMP_CONNECTED 

at_ble_status_t app_connect_request ( at_ble_scan_info_t scan_buffer,
uint8_t  index 
)
static void fmp_simulation_task ( void  )
static

Find me sending the alert level to peer devices after checking the rssi.