Microchip® Advanced Software Framework

thirdparty/wireless/ble_sdk/apps/custom_serial_chat/csc_app.c File Reference

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 at_ble_status_t app_connected_event_handler ( void *  params)
static

app_connected_state blemanager notifies the application about state

Parameters
[in]at_ble_connected_t

References ALL_UNUSED, and AT_BLE_SUCCESS.

static at_ble_status_t app_disconnected_event_handler ( void *  params)
static

app_connected_state ble manager notifies the application about state

Parameters
[in]connected

References ALL_UNUSED, AT_BLE_SUCCESS, and csc_prf_dev_adv().

static void csc_app_recv_buf ( uint8_t *  recv_data,
uint8_t  recv_len 
)
static

References DBG_LOG, and sio2host_putchar().

Referenced by csc_prf_report_ntf_cb().

static void csc_prf_report_ntf_cb ( csc_report_ntf_t report_info)
static

bool app_exec = true
const ble_gap_event_cb_t app_gap_handle
static
Initial value:
= {
}
static at_ble_status_t app_connected_event_handler(void *params)
app_connected_state blemanager notifies the application about state
Definition: thirdparty/wireless/ble_sdk/apps/custom_serial_chat/csc_app.c:167
static at_ble_status_t app_disconnected_event_handler(void *params)
app_connected_state ble manager notifies the application about state
Definition: thirdparty/wireless/ble_sdk/apps/custom_serial_chat/csc_app.c:177
csc_report_ntf_t recv_ntf_info
uint8_t send_data[APP_TX_BUF_SIZE]
uint16_t send_length = 0