Microchip® Advanced Software Framework

pas_app.h File Reference

Phone Alert Status Application declarations.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define APP_BUTTON_EVENT_ID   (1)
 Button event ID. More...
 
#define BIT0_MASK   (0x1 << 0)
 
#define BIT1_MASK   (0x1 << 1)
 
#define BIT2_MASK   (0x1 << 2)
 
#define DEVICE_MUTE   (2)
 
#define DEVICE_NORMAL   (3)
 
#define DEVICE_SILENT   (1)
 
#define DISCOVER_ATTRIBUTES   (6)
 
#define READ_ALERT_STATUS   (4)
 
#define READ_REQUEST   (4)
 
#define READ_RINGER_SETTING   (5)
 
#define RINGER_NORMAL   (0x1)
 
#define RINGER_SILENT   (0x0)
 

Functions

static at_ble_status_t app_connected_event_handler (void *params)
 app_connected_state blemanager notifies the application about state More...
 
static at_ble_status_t app_disconnected_event_handler (void *params)
 app_connected_state ble manager notifies the application about state More...
 
static at_ble_status_t pas_custom_event (void *param)
 

#define APP_BUTTON_EVENT_ID   (1)

Button event ID.

Referenced by pas_custom_event().

#define BIT0_MASK   (0x1 << 0)
#define BIT1_MASK   (0x1 << 1)
#define BIT2_MASK   (0x1 << 2)
#define DEVICE_MUTE   (2)

Referenced by main().

#define DEVICE_NORMAL   (3)

Referenced by main().

#define DEVICE_SILENT   (1)
#define DISCOVER_ATTRIBUTES   (6)

Referenced by main().

#define READ_ALERT_STATUS   (4)

Referenced by main().

#define READ_REQUEST   (4)

Referenced by main().

#define READ_RINGER_SETTING   (5)

Referenced by main().

#define RINGER_NORMAL   (0x1)
#define RINGER_SILENT   (0x0)

static at_ble_status_t app_connected_event_handler ( void *  params)
static

app_connected_state blemanager notifies the application about state

Parameters
[in]at_ble_connected_t
static at_ble_status_t app_disconnected_event_handler ( void *  params)
static

app_connected_state ble manager notifies the application about state

Parameters
[in]connected
static at_ble_status_t pas_custom_event ( void *  param)
static