Microchip® Advanced Software Framework

ibeacon.c File Reference

Simple BTLC1000 Beacon Application.

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

#include <asf.h>
#include "platform.h"
#include "at_ble_api.h"
#include "console_serial.h"
#include "conf_extint.h"
#include "ibeacon.h"
#include "ble_utils.h"

Functions

static void beacon_init (void)
 
static void ble_device_adv_failed_ind (void)
 
static void ble_device_adv_success_ind (void)
 
static void ble_init (void)
 
static void ble_set_address (at_ble_addr_t *addr)
 
void button_cb (void)
 
int main (void)
 

Variables

uint8_t event_params_memory [1024] = {0}
 
uint8_t event_pool_memory [256] = {0}
 
at_ble_init_config_t pf_cfg
 
uint32_t rx_fifo_memory [256] = {0}
 

static void ble_device_adv_failed_ind ( void  )
static

Referenced by beacon_init().

static void ble_device_adv_success_ind ( void  )
static

Referenced by beacon_init().

static void ble_set_address ( at_ble_addr_t addr)
static
void button_cb ( void  )

uint8_t event_params_memory[1024] = {0}
uint8_t event_pool_memory[256] = {0}
Initial value:
= {
.platform_api_list.at_ble_create_timer = platform_create_timer,
.platform_api_list.at_ble_delete_timer = platform_delete_timer,
.platform_api_list.at_ble_start_timer = platform_start_timer,
.platform_api_list.at_ble_stop_timer = platform_stop_timer,
.platform_api_list.at_ble_sleep = platform_sleep,
.platform_api_list.at_ble_gpio_set = platform_gpio_set,
.platform_api_list.at_ble_send_sync = platform_send_sync,
.platform_api_list.at_ble_recv_async = platform_recv_async,
.platform_api_list.at_ble_reconfigure_usart = platform_configure_hw_fc_uart,
.platform_api_list.at_ble_wait_for_signal = platform_wait_for_signal,
.platform_api_list.at_ble_create_signal = platform_create_signal,
.platform_api_list.at_ble_delete_signal = platform_delete_signal,
.platform_api_list.at_ble_trigger_signal = platform_trigger_signal,
.platform_api_list.at_ble_reset_signal = platform_reset_signal
}
void platform_wait_for_signal(uint32_t count, void **signal_handler_list)
Definition: ble_sdk/src/platform.c:273
void platform_delete_signal(void *signal_handler)
Definition: ble_sdk/src/platform.c:325
void * platform_create_signal(void)
Definition: ble_sdk/src/platform.c:310
void platform_send_sync(uint8_t *data, uint32_t len)
Definition: ble_sdk/src/platform.c:89
void * platform_create_timer(void(*timer_cb)(void *))
Definition: ble_sdk/src/platform.c:234
void platform_sleep(uint32_t ms)
Definition: ble_sdk/src/platform.c:258
void platform_delete_timer(void *timer_handle)
Definition: ble_sdk/src/platform.c:239
void platform_recv_async(void(*recv_async_callback)(uint8_t))
Definition: ble_sdk/src/platform.c:151
void platform_gpio_set(at_ble_gpio_pin_t pin, at_ble_gpio_status_t status)
Definition: ble_sdk/src/platform.c:112
void platform_start_timer(void *timer_handle, uint32_t ms)
Definition: ble_sdk/src/platform.c:244
void platform_configure_hw_fc_uart(uint32_t baudrate)
Definition: ble_sdk/src/platform.c:177
void platform_stop_timer(void *timer_handle)
Definition: ble_sdk/src/platform.c:251
void platform_reset_signal(void *signal_handler)
Definition: ble_sdk/src/platform.c:345
void platform_trigger_signal(void *signal_handler)
Definition: ble_sdk/src/platform.c:335
uint32_t rx_fifo_memory[256] = {0}