AltBeacon 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 "altbeacon.h"
#include "ble_utils.h"
Functions | |
static void | altbeacon_init (void) |
Initialize the alt beacon advertisement data and start advertisement. More... | |
static void | ble_init (void) |
Initialize the BLE. More... | |
static void | ble_set_address (at_ble_addr_t *addr) |
Set BLE Address, If address is NULL then it will use BD public address. More... | |
int | main (void) |
Variables | |
uint32_t | event_params_memory [1024] = {0} |
uint32_t | event_pool_memory [256] = {0} |
at_ble_init_config_t | pf_cfg |
uint32_t | rx_fifo_memory [256] = {0} |
|
static |
Initialize the alt beacon advertisement data and start advertisement.
References ALT_BEACON_16BYTE_UUID, ALT_BEACON_16BYTE_UUID_LENGTH, ALT_BEACON_2BYTE_LEN, ALT_BEACON_ABSOLUTE_INTERVAL_ADV, ALT_BEACON_ADV_LENGTH, ALT_BEACON_ADV_TIMEOUT, ALT_BEACON_ADV_TYPE_LENGTH, ALT_BEACON_CODE, ALT_BEACON_CODE_LENGTH, ALT_BEACON_MAJOR_NUM, ALT_BEACON_MINOR_NUM, ALT_BEACON_SCAN_RESPONSE_LENGTH, at_ble_adv_data_set(), AT_BLE_ADV_FP_ANY, AT_BLE_ADV_GEN_DISCOVERABLE, AT_BLE_ADV_NONCON_INTERVAL_MIN, at_ble_adv_start(), AT_BLE_ADV_TYPE_NONCONN_UNDIRECTED, AT_BLE_SUCCESS, DBG_LOG, MANUFACTURER_ID, MANUFACTURER_ID_LENGTH, MANUFACTURER_SPECIFIC_TYPE, MFG_RSVD, NULL, and REF_RSSI.
Referenced by main().
|
static |
Initialize the BLE.
References platform_api_list_tag::at_ble_create_signal, platform_api_list_tag::at_ble_create_timer, platform_api_list_tag::at_ble_delete_signal, platform_api_list_tag::at_ble_delete_timer, platform_api_list_tag::at_ble_gpio_set, at_ble_init(), platform_api_list_tag::at_ble_reconfigure_usart, platform_api_list_tag::at_ble_recv_async, platform_api_list_tag::at_ble_reset_signal, platform_api_list_tag::at_ble_send_sync, platform_api_list_tag::at_ble_sleep, platform_api_list_tag::at_ble_start_timer, platform_api_list_tag::at_ble_stop_timer, AT_BLE_SUCCESS, platform_api_list_tag::at_ble_trigger_signal, AT_BLE_UART, platform_api_list_tag::at_ble_wait_for_signal, AT_BTLC1000_MR, AT_BTLC1000_ZR, BTLC1000_EXT_PIN9, at_ble_init_config_t::btlc1000_module_version, at_ble_bus_info_t::btlc1000_uart_pinout_switch, at_ble_bus_info_t::bus_baudrate, at_ble_init_config_t::bus_info, at_ble_bus_info_t::bus_type, DBG_LOG, at_ble_init_config_t::event_mem_pool, at_ble_init_config_t::event_params_mem_pool, event_params_memory, event_pool_memory, at_ble_bus_info_t::host_external_wakeup_gpio, at_ble_init_config_t::memPool, at_ble_mempool_t::memSize, at_ble_mempool_t::memStartAdd, NULL, at_ble_init_config_t::platform_api_list, platform_configure_hw_fc_uart(), platform_configure_primary_uart(), platform_create_signal(), platform_create_timer(), platform_delete_signal(), platform_delete_timer(), platform_gpio_set(), platform_init(), platform_recv_async(), platform_reset_signal(), platform_send_sync(), platform_sleep(), platform_start_timer(), platform_stop_timer(), platform_trigger_signal(), platform_wait_for_signal(), at_ble_init_config_t::rx_fifo_mem_pool, and rx_fifo_memory.
Referenced by main().
|
static |
Set BLE Address, If address is NULL then it will use BD public address.
References addr, at_ble_addr_t::addr, at_ble_addr_get(), at_ble_addr_set(), AT_BLE_ADDRESS_PUBLIC, AT_BLE_SUCCESS, DBG_LOG, NULL, and at_ble_addr_t::type.
Referenced by main().
int main | ( | void | ) |
References altbeacon_init(), ble_init(), ble_set_address(), board_init(), NULL, serial_console_init(), and system_init().
uint32_t event_params_memory[1024] = {0} |
Referenced by ble_device_init(), and ble_init().
uint32_t event_pool_memory[256] = {0} |
Referenced by ble_device_init(), and ble_init().
at_ble_init_config_t pf_cfg |
uint32_t rx_fifo_memory[256] = {0} |
Referenced by ble_device_init(), and ble_init().