Transparent UART 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 "sio2host.h"
#include "platform.h"
#include "ble_manager.h"
#include "transparent_uart_app.h"
Variables | |
static const uint8_t | adv_data [] |
static const ble_common_event_cb_t | app_common_event_handle |
static uint8_t | app_conn_handle |
static const ble_gap_event_cb_t | app_gap_event_handle |
static const ble_gatt_client_event_cb_t | app_gatt_client_event_handle |
static const ble_gatt_server_event_cb_t | app_gatt_server_event_handle |
static const ble_pairing_event_cb_t | app_pairing_event_handle |
static const ble_gatt_transparent_event_cb_t | app_transparent_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 |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References app_conn_handle, ble_mgr_transparent_uart_enable(), BLE_SUCCESS, PACKED::conn_handle, and event_msg_t::data.
|
static |
|
static |
References BLE_COMMON_EVENT_TYPE, BLE_GAP_EVENT_TYPE, BLE_GATT_CLIENT_EVENT_TYPE, BLE_GATT_SERVER_EVENT_TYPE, BLE_GATT_TP_EVENT_TYPE, ble_mgr_events_register_callback(), and BLE_PAIRING_EVENT_TYPE.
Referenced by main().
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References app_conn_handle, ble_mgr_transparent_uart_send(), and sio2host_rx().
Referenced by main().
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS.
|
static |
References BLE_SUCCESS, event_msg_t::data, PACKED::data, event_msg_t::data_len, data_len, DBG_LOG, and DBG_LOG_CONT.
void button_cb | ( | void | ) |
int main | ( | void | ) |
|
static |
|
static |
|
static |
Referenced by app_connected_cb(), app_disconnected_cb(), and app_send_transparent_uart_data().
|
static |
|
static |
|
static |
|
static |
|
static |
uint8_t event_buf[EVENT_BUFFER_LENGTH] |
event_t evt_param = {.event_msg.data = event_buf, .event_msg.data_len = 0, .event_id = 0} |