Microchip® Advanced Software Framework

ibeacon_app.c File Reference

iBeacon application

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

#include "platform_files.h"
#include "bm_mode.h"
#include "bm_application_mode.h"
#include "bm_utils.h"
#include "event_mem.h"
#include "ble_api.h"
#include "platform.h"
#include "ble_manager.h"
#include "ibeacon_app.h"

Functions

static ble_status_t app_adv_report_cb (event_msg_t *msg)
 
static ble_status_t app_cmd_complete_cb (event_msg_t *msg)
 
static ble_status_t app_config_mode_status_cb (event_msg_t *msg)
 
static void app_ibeacon_init (void)
 
static void app_init (void)
 
static ble_status_t app_le_end_test_result_cb (event_msg_t *msg)
 
static ble_status_t app_status_report_cb (event_msg_t *msg)
 
void button_cb (void)
 
int main (void)
 

Variables

static const ble_common_event_cb_t app_common_event_handle
 
static const ble_gap_event_cb_t app_gap_event_handle
 
uint8_t event_buf [EVENT_BUFFER_LENGTH]
 
event_t evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0}
 

static ble_status_t app_adv_report_cb ( event_msg_t msg)
static

References BLE_SUCCESS.

static ble_status_t app_cmd_complete_cb ( event_msg_t msg)
static

References BLE_SUCCESS.

static ble_status_t app_config_mode_status_cb ( event_msg_t msg)
static

References BLE_SUCCESS.

static void app_init ( void  )
static
static ble_status_t app_le_end_test_result_cb ( event_msg_t msg)
static

References BLE_SUCCESS.

static ble_status_t app_status_report_cb ( event_msg_t msg)
static

References BLE_SUCCESS.

void button_cb ( void  )

const ble_common_event_cb_t app_common_event_handle
static
Initial value:
= {
.cmd_complete = app_cmd_complete_cb,
.status_report = app_status_report_cb,
.le_end_test_result = app_le_end_test_result_cb,
.config_mode_status = app_config_mode_status_cb,
}
static ble_status_t app_le_end_test_result_cb(event_msg_t *msg)
Definition: ibeacon_app.c:94
static ble_status_t app_config_mode_status_cb(event_msg_t *msg)
Definition: ibeacon_app.c:99
static ble_status_t app_cmd_complete_cb(event_msg_t *msg)
Definition: ibeacon_app.c:84
static ble_status_t app_status_report_cb(event_msg_t *msg)
Definition: ibeacon_app.c:89
const ble_gap_event_cb_t app_gap_event_handle
static
Initial value:
= {
.adv_report = app_adv_report_cb,
}
static ble_status_t app_adv_report_cb(event_msg_t *msg)
Definition: ibeacon_app.c:79
uint8_t event_buf[EVENT_BUFFER_LENGTH]
event_t evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0}