WINC3400 BLE Application example code.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
#include "driver/include/m2m_types.h"
#include "driver/include/m2m_wifi.h"
#include "at_ble_api.h"
#include "platform.h"
#include "m2m_ble.h"
#include "ble_manager.h"
Functions | |
void | m2m_ble_api_write_func (uint8 *msg, uint32 len) |
sint8 | m2m_ble_event_get (at_ble_events_t *event, at_ble_event_parameter_t *params) |
sint8 | m2m_ble_init (void) |
static void | m2m_ble_plf_wait_func (void) |
void | m2m_ble_wifi_callback (uint8 u8MsgType, void *pvMsg) |
sint8 | m2m_ble_wifi_init (tstrWifiInitParam *param) |
Variables | |
static tpfAppWifiCb | gpfBleAppWifiCb = NULL |
References M2M_INFO, and m2m_wifi_ble_api_send().
Referenced by m2m_ble_init().
sint8 m2m_ble_event_get | ( | at_ble_events_t * | event, |
at_ble_event_parameter_t * | params | ||
) |
References at_ble_event_get(), AT_BLE_SUCCESS, AT_BLE_UNDEFINED_EVENT, BLE_EVENT_TIMEOUT, M2M_SUCCESS, m2m_wifi_handle_events(), and NULL.
Referenced by app_ble_trans_service().
sint8 m2m_ble_init | ( | void | ) |
References at_ble_init(), AT_BLE_SUCCESS, plf_params_t::ble_write_cb, gpfBleAppWifiCb, m2m_ble_api_write_func(), m2m_ble_plf_wait_func(), M2M_ERR, M2M_SUCCESS, NULL, and plf_params_t::plf_wait_cb.
Referenced by app_ble_trans_service().
|
static |
References M2M_SUCCESS, m2m_wifi_handle_events(), and NULL.
Referenced by m2m_ble_init().
void m2m_ble_wifi_callback | ( | uint8 | u8MsgType, |
void * | pvMsg | ||
) |
References tstrM2mBleApiMsg::data, gpfBleAppWifiCb, M2M_INFO, M2M_WIFI_RESP_BLE_API_RECV, platform_receive(), and tstrM2mBleApiMsg::u16Len.
Referenced by m2m_ble_wifi_init().
sint8 m2m_ble_wifi_init | ( | tstrWifiInitParam * | param | ) |
References gpfBleAppWifiCb, m2m_ble_wifi_callback(), m2m_wifi_init(), tstrEthInitParam::pfAppWifiCb, tstrWifiInitParam::pfAppWifiCb, and tstrWifiInitParam::strEthInitParam.
Referenced by app_wifi_init().
|
static |
Referenced by m2m_ble_init(), m2m_ble_wifi_callback(), and m2m_ble_wifi_init().