This file provides definitions and function prototypes for the Blueooth LE Application Management (BLEAPP).
More...
|
#define | BLEAPP_APP_TIMER_ADV 0x1 |
|
#define | BLEAPP_APP_TIMER_CONN_IDLE 0x2 |
|
#define | BLEAPP_APP_TIMER_DIRECT_ADV 0x3 |
|
#define | BLEAPP_APP_TIMER_SCAN 0x4 |
|
#define | BLEAPP_APP_TIMER_CONN 0x5 |
|
#define | BLEAPP_APP_TIMER_FILTER_OFF 0x11 |
|
#define | BLEAPP_APP_TIMER_GENERIC 0xF1 |
|
#define | APPLICATION_INIT() ATTRIBUTE((section(".app_init_code"))) void application_init( void ) |
|
|
struct { |
UINT8 * p_db |
|
UINT16 db_size |
|
void * cfg |
|
void * puart_cfg |
|
void * gpio_cfg |
|
void * create_func |
|
} | BLEAPP_INIT_CFG |
|
struct { |
UINT8 * p_db |
|
UINT16 db_size |
|
} | BLEAPP_DB_CFG |
|
struct { |
UINT8 selLPOSrc |
|
BOOLEAN selPeripheralLPOSrc |
|
UINT16 driftRate |
|
} | BLEAPP_SELECT_LPO |
|
struct { |
UINT8 selectlpoenable |
|
UINT16 IntervalLimitLPO |
|
BLEAPP_SELECT_LPO selLPO_Default |
|
BLEAPP_SELECT_LPO selLPO_Powersave |
|
BLEAPP_SELECT_LPO selLPO_IntervalHigh |
|
} | BLEAPP_SELECT_LPO_CFG |
|
struct { |
UINT8 cpuclockenable |
|
CLOCK_SPEED default_cpu_clock |
|
CLOCK_SPEED powersave_cpu_clock |
|
} | BLEAPP_CPU_CLOCK_CFG |
|
|
enum | ble_hidoff_mode {
HIDOFF_DISABLE = 0x00,
BAT_HIDOFF_ENABLE = 0x01,
IDLE_HIDOFF_ENABLE = 0x02,
BUTTON_HIDOFF_ENABLE = 0x04,
SLEEP_UART_DISABLE = 0x08,
SLEEP_BAT_DISABLE = 0x10
} |
|
enum | ble_cpu_clock_enable { CPU_CLOCK_DISABLE = 0x00,
DEFAULT_CPU_CLOCK_ENABLE = 0x01,
POWERSAVE_CPU_CLOCK_ENABLE = 0x02
} |
|
enum | ble_select_lpo_enable { SELECT_LPO_DISABLE = 0x00,
DEFAULT_SELECT_LPO_ENABLE = 0x01,
POWERSAVE_SELECT_LPO_ENABLE = 0x02,
INTERVALHIGH_SELECT_LPO_ENABLE = 0x04
} |
|
enum | CLOCK_SPEED {
CPU_CLK_SPEED_24MHZ,
CPU_CLK_SPEED_12MHZ,
CPU_CLK_SPEED_8MHZ,
CPU_CLK_SPEED_6MHZ,
CPU_CLK_SPEED_4MHZ,
CPU_CLK_SPEED_3MHZ,
CPU_CLK_SPEED_2MHZ,
CPU_CLK_SPEED_1MHZ
} |
|
enum | {
LPO_CLK_INTERNAL,
LPO_CLK_EXTERNAL,
LPO_CLK_CRYSTAL,
LPO_NO_SELECTED,
LPO_32KHZ_OSC,
LPO_MIA_LPO
} |
|
enum | { BLE_TRACE_UART_NONE,
BLE_TRACE_UART_PERIPHERAL,
BLE_TRACE_UART_HCI
} |
|
|
void | bleapp_set_cfg (UINT8 *p_db, UINT16 db_size, void *cfg, void *puart_cfg, void *gpio_cfg, void *create_func) |
|
void | bleapp_init (void) |
|
void | bleapp_gpio_debug_init (void) |
|
void | bleapp_gpio_debug (UINT16 setting, UINT16 pinmap) |
|
void | bleapp_gpio_init (void) |
|
void | bleapp_puart_init (void) |
|
void | ble_trace0 (const char *p_str) |
|
void | ble_trace1 (const char *fmt_str, UINT32 p1) |
|
void | ble_trace2 (const char *fmt_str, UINT32 p1, UINT32 p2) |
|
void | ble_trace3 (const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3) |
|
void | ble_trace4 (const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4) |
|
void | ble_trace5 (const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5) |
|
void | ble_trace6 (const char *fmt_str, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5, UINT32 p6) |
|
void | ble_tracen (char *p_str, UINT16 len) |
|
void | ble_traceEnable (UINT32 channel) |
|
void | ble_traceDisable (void) |
|
This file provides definitions and function prototypes for the Blueooth LE Application Management (BLEAPP).