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 |
References ADDTIONAL_MANUFACTURER_SPECIFIC_DATA, ADDTIONAL_MANUFACTURER_SPECIFIC_DATA_LENGTH, at_ble_adv_data_set(), AT_BLE_ADV_FP_ANY, AT_BLE_ADV_GEN_DISCOVERABLE, at_ble_adv_start(), AT_BLE_ADV_TYPE_NONCONN_UNDIRECTED, AT_BLE_SUCCESS, BEACON_ABSOLUTE_INTERVAL_ADV, BEACON_ADV_INTERVAL, BEACON_ADV_LENGTH, BEACON_ADV_TIMEOUT, BEACON_ADV_TYPE, BEACON_ADV_TYPE_LENGTH, BEACON_SCAN_RESPONSE_LENGTH, ble_device_adv_failed_ind(), ble_device_adv_success_ind(), COMPANY_IDENTIFIER_CODE, COMPANY_IDENTIFIER_CODE_LENGTH, DBG_LOG, and NULL.
Referenced by main().
|
static |
Referenced by beacon_init().
|
static |
Referenced by beacon_init().
|
static |
References at_ble_calib_config(), at_ble_init(), platform_api_list_tag::at_ble_reconfigure_usart, AT_BLE_SUCCESS, AT_BLE_UART, 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_host_set_sleep(), platform_init(), at_ble_init_config_t::rx_fifo_mem_pool, and rx_fifo_memory.
Referenced by main().
|
static |
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().
void button_cb | ( | void | ) |
int main | ( | void | ) |
References beacon_init(), ble_init(), ble_set_address(), board_init(), DBG_LOG, NULL, serial_console_init(), and system_init().
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} |