Microchip® Advanced Software Framework

enddevice_cpc.c File Reference

Certification Protocol Commands implementation.

Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "lorawan.h"
#include "radio_interface.h"
#include "radio_driver_hal.h"
#include "enddevice_cpc.h"
#include "enddevice_cert.h"
#include "conf_certification.h"
#include "sio2host.h"
#include "sw_timer.h"
#include "pds_interface.h"

Functions

void enddevice_cpc_execute_command (uint8_t *buffer, uint8_t buflen)
 
static void enddevice_cpc_fresh_join (void)
 
bool enddevice_cpc_is_payload_valid (uint8_t *buffer, uint8_t len)
 
static void enddevice_txcw_callback (void)
 

Variables

uint8_t appKey [16]
 
uint8_t bandTable []
 
bool bTxCnf
 
uint32_t certAppTimeout
 
uint8_t certAppTimerId
 
bool clear_linkcheck
 
IsmBand_t current_band
 
uint8_t devEui [8]
 
uint16_t downlinkCtr
 
uint8_t joinEui [8]
 
LorawanSendReq_t lorawanSendReq
 
bool pktRxd
 
uint8_t sendData [100]
 
uint16_t sendDataLen
 
uint8_t sendFport
 
uint8_t testMode
 
uint8_t tx_cw_timer
 
TransmissionType_t txType
 
uint8_t uplinkTestNoResp
 

static void enddevice_txcw_callback ( void  )
static

References ERR_NONE, and RADIO_StopCW().

Referenced by enddevice_cpc_execute_command().

uint8_t appKey[16]
bool clear_linkcheck

Referenced by cert_app_timer_callback().

uint8_t devEui[8]
uint8_t joinEui[8]
LorawanSendReq_t lorawanSendReq
uint8_t sendFport
uint8_t testMode
uint8_t tx_cw_timer
uint8_t uplinkTestNoResp