Microchip® Advanced Software Framework

common/components/wifi/winc3400/custom_serial_chat/csc_app.c File Reference

Custom Serial Chat Application declarations.

Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.

#include <asf.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"
#include "bsp/include/nm_bsp.h"
#include "m2m_ble.h"
#include "driver/include/m2m_periph.h"

Macros

#define HEX2ASCII(x)   (((x)>=10)? (((x)-10)+'A') : ((x)+'0'))
 
#define STRING_HEADER
 

Functions

static
at_ble_event_parameter_t
gu8BleParam 
__aligned (4)
 
static void app_wifi_handle_event (uint8 u8MsgType, void *pvMsg)
 
static void app_wifi_init (tpfAppWifiCb wifi_cb_func)
 
void ble_csc_init (void)
 
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

csc_report_ntf_t recv_ntf_info
 
uint8_t send_data [APP_TX_BUF_SIZE]
 
uint16_t send_length = 0
 

#define HEX2ASCII (   x)    (((x)>=10)? (((x)-10)+'A') : ((x)+'0'))

Referenced by app_wifi_init().

#define STRING_HEADER
Value:
"-- Custom Serial chat demo --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --\r\n"
#define BOARD_NAME
Definition: app_init.h:140

Referenced by main().

static at_ble_event_parameter_t gu8BleParam __aligned ( )
static
static void app_wifi_handle_event ( uint8  u8MsgType,
void *  pvMsg 
)
static

Referenced by main().

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

csc_report_ntf_t recv_ntf_info
uint16_t send_length = 0