Custom Serial Chat Application declarations.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include "platform.h"
#include "console_serial.h"
#include "at_ble_api.h"
#include "ble_manager.h"
#include "csc_app.h"
#include "cscp.h"
#include "cscs.h"
#include "conf_extint.h"
#include "sio2host.h"
Functions | |
static at_ble_status_t | app_connected_event_handler (void *params) |
app_connected_state blemanager notifies the application about state More... | |
static at_ble_status_t | app_disconnected_event_handler (void *params) |
app_connected_state ble manager notifies the application about state More... | |
static void | csc_app_recv_buf (uint8_t *recv_data, uint8_t recv_len) |
static void | csc_app_send_buf (void) |
static void | csc_prf_report_ntf_cb (csc_report_ntf_t *report_info) |
int | main (void) |
Variables | |
bool | app_exec = true |
static const ble_gap_event_cb_t | app_gap_handle |
csc_report_ntf_t | recv_ntf_info |
uint8_t | send_data [APP_TX_BUF_SIZE] |
uint16_t | send_length = 0 |
|
static |
app_connected_state blemanager notifies the application about state
[in] | at_ble_connected_t |
References ALL_UNUSED, and AT_BLE_SUCCESS.
|
static |
app_connected_state ble manager notifies the application about state
[in] | connected |
References ALL_UNUSED, AT_BLE_SUCCESS, and csc_prf_dev_adv().
|
static |
References DBG_LOG, and sio2host_putchar().
Referenced by csc_prf_report_ntf_cb().
|
static |
References APP_TX_BUF_SIZE, BACKSPACE_BUTTON_PRESS, csc_prf_send_data(), DBG_LOG, ENTER_BUTTON_PRESS, send_data, send_length, sio2host_putchar(), sio2host_rx(), SPACE_BAR, and TAB_PRESSED.
Referenced by main().
|
static |
References csc_app_recv_buf(), DBG_LOG, csc_report_ntf::recv_buff, and csc_report_ntf::recv_buff_len.
Referenced by main().
int main | ( | void | ) |
References app_exec, APP_TX_BUF_SIZE, ble_device_init(), ble_event_task(), BLE_GAP_EVENT_TYPE, ble_mgr_events_callback_handler(), board_init(), csc_app_send_buf(), csc_prf_buf_init(), csc_prf_dev_adv(), csc_prf_init(), csc_prf_report_ntf_cb(), DBG_LOG, notify_recv_ntf_handler(), NULL, REGISTER_CALL_BACK, send_data, sio2host_init(), and system_init().
|
static |
csc_report_ntf_t recv_ntf_info |
uint8_t send_data[APP_TX_BUF_SIZE] |
Referenced by csc_app_send_buf(), and main().
uint16_t send_length = 0 |
Referenced by csc_app_send_buf().