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 |
Referenced by main().
|
static |
|
static |
References HEX2ASCII, m2m_ble_wifi_init(), M2M_DEVICE_NAME, M2M_ERR, M2M_INFO, M2M_LISTEN_INTERVAL, m2m_memset(), M2M_NO_PS, m2m_periph_pullup_ctrl(), M2M_PERIPH_PULLUP_DIS_HOST_WAKEUP, M2M_PERIPH_PULLUP_DIS_SD_CMD_SPI_SCK, M2M_PERIPH_PULLUP_DIS_SD_DAT0_SPI_TXD, M2M_PS_DEEP_AUTOMATIC, M2M_PS_MANUAL, m2m_strlen(), M2M_SUCCESS, m2m_wifi_get_mac_address(), m2m_wifi_get_otp_mac_address(), m2m_wifi_set_device_name(), m2m_wifi_set_lsn_int(), m2m_wifi_set_mac_address(), m2m_wifi_set_sleep_mode(), MAC_ADDRESS, tstrWifiInitParam::pfAppWifiCb, system_reset(), and tstrM2mLsnInt::u16LsnInt.
Referenced by main().
void ble_csc_init | ( | void | ) |
References APP_TX_BUF_SIZE, AT_BLE_SUCCESS, AT_BLE_UNDEFINED_EVENT, ble_device_init(), ble_event_manager(), csc_app_send_buf(), csc_prf_buf_init(), csc_prf_report_ntf_cb(), DBG_LOG, m2m_ble_event_get(), notify_recv_ntf_handler(), NULL, and send_data.
Referenced by main().
|
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(), and SPACE_BAR.
Referenced by ble_csc_init().
|
static |
References csc_app_recv_buf(), csc_report_ntf::recv_buff, and csc_report_ntf::recv_buff_len.
Referenced by ble_csc_init().
int main | ( | void | ) |
References app_wifi_handle_event(), app_wifi_init(), ble_csc_init(), m2m_ble_init(), nm_bsp_init(), sio2host_init(), STRING_HEADER, and system_init().
csc_report_ntf_t recv_ntf_info |
uint8_t send_data[APP_TX_BUF_SIZE] |
Referenced by ble_csc_init(), and csc_app_send_buf().
uint16_t send_length = 0 |
Referenced by csc_app_send_buf().