Microchip® Advanced Software Framework

system_assert.h File Reference

This has all the dependencies for LoRaWAN system assertion.

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

#include <stdint.h>
#include <stddef.h>

Macros

#define ASSERT_APP   (0x0000)
 
#define ASSERT_APP_GPSTIMEUNKNOWN_FAIL   (ASSERT_APP|1)
 
#define ASSERT_HAL   (0x0300)
 
#define ASSERT_HAL_TIMER_START_FAILURE   (ASSERT_HAL|2)
 
#define ASSERT_HAL_TIMER_STOP_FAILURE   (ASSERT_HAL|3)
 
#define ASSERT_HAL_TIMERID_EXHAUSTED   (ASSERT_HAL|1)
 
#define ASSERT_MAC   (0x0100)
 
#define ASSERT_MAC_AUTOREPLY_RXSTATEFAIL   (ASSERT_MAC_TXRETRY_RXSTOPFAIL+1)
 
#define ASSERT_MAC_CLASSCJOIN_STATEFAIL   (ASSERT_MAC_CLASSCRX2TIMEOUT_STATEFAIL+1)
 
#define ASSERT_MAC_CLASSCRX2TIMEOUT_STATEFAIL   (ASSERT_MAC_RXCALLBACK_RXSTOPFAIL+1)
 
#define ASSERT_MAC_CONFIGRX2_RXFAIL   (ASSERT_MAC_UNCNFTXRETRY_RXSTOPFAIL+1)
 
#define ASSERT_MAC_PAUSE_RXSTOPFAIL   (ASSERT_MAC_SETEDCLASS_RXSTOPFAIL+1)
 
#define ASSERT_MAC_RX1CALLBACK_RXFAIL   (ASSERT_MAC|1)
 
#define ASSERT_MAC_RXCALLBACK_RXSTOPFAIL   (ASSERT_MAC_PAUSE_RXSTOPFAIL+1)
 
#define ASSERT_MAC_SETEDCLASS_RXSTOPFAIL   (ASSERT_MAC_CONFIGRX2_RXFAIL+1)
 
#define ASSERT_MAC_TXRETRY_RXSTOPFAIL   (ASSERT_MAC_RX1CALLBACK_RXFAIL+1)
 
#define ASSERT_MAC_UNCNFTXRETRY_RXSTATEFAIL   (ASSERT_MAC_AUTOREPLY_RXSTATEFAIL+1)
 
#define ASSERT_MAC_UNCNFTXRETRY_RXSTOPFAIL   (ASSERT_MAC_UNCNFTXRETRY_RXSTATEFAIL+1)
 
#define ASSERT_RADIO   (0x0200)
 
#define SYS_ASSERT_ERROR(num)
 
#define SYS_ASSERT_FATAL(num)
 
#define SYS_ASSERT_INFO(num)
 

Typedefs

typedef void(* SystemAssertCb_t )(SystemAssertLevel_t level, uint16_t assertNum)
 
typedef enum _SystemAssertLevel_t SystemAssertLevel_t
 

Enumerations

enum  _SystemAssertLevel_t {
  ASSERT_INFO,
  ASSERT_ERROR,
  ASSERT_FATAL
}
 

#define ASSERT_APP   (0x0000)
#define ASSERT_APP_GPSTIMEUNKNOWN_FAIL   (ASSERT_APP|1)
#define ASSERT_HAL   (0x0300)
#define ASSERT_HAL_TIMER_START_FAILURE   (ASSERT_HAL|2)
#define ASSERT_HAL_TIMER_STOP_FAILURE   (ASSERT_HAL|3)
#define ASSERT_HAL_TIMERID_EXHAUSTED   (ASSERT_HAL|1)
#define ASSERT_MAC   (0x0100)
#define ASSERT_MAC_AUTOREPLY_RXSTATEFAIL   (ASSERT_MAC_TXRETRY_RXSTOPFAIL+1)
#define ASSERT_MAC_CLASSCJOIN_STATEFAIL   (ASSERT_MAC_CLASSCRX2TIMEOUT_STATEFAIL+1)
#define ASSERT_MAC_CLASSCRX2TIMEOUT_STATEFAIL   (ASSERT_MAC_RXCALLBACK_RXSTOPFAIL+1)
#define ASSERT_MAC_CONFIGRX2_RXFAIL   (ASSERT_MAC_UNCNFTXRETRY_RXSTOPFAIL+1)
#define ASSERT_MAC_PAUSE_RXSTOPFAIL   (ASSERT_MAC_SETEDCLASS_RXSTOPFAIL+1)
#define ASSERT_MAC_RX1CALLBACK_RXFAIL   (ASSERT_MAC|1)
#define ASSERT_MAC_RXCALLBACK_RXSTOPFAIL   (ASSERT_MAC_PAUSE_RXSTOPFAIL+1)
#define ASSERT_MAC_SETEDCLASS_RXSTOPFAIL   (ASSERT_MAC_CONFIGRX2_RXFAIL+1)
#define ASSERT_MAC_TXRETRY_RXSTOPFAIL   (ASSERT_MAC_RX1CALLBACK_RXFAIL+1)
#define ASSERT_MAC_UNCNFTXRETRY_RXSTATEFAIL   (ASSERT_MAC_AUTOREPLY_RXSTATEFAIL+1)
#define ASSERT_MAC_UNCNFTXRETRY_RXSTOPFAIL   (ASSERT_MAC_UNCNFTXRETRY_RXSTATEFAIL+1)
#define ASSERT_RADIO   (0x0200)
#define SYS_ASSERT_ERROR (   num)
#define SYS_ASSERT_FATAL (   num)
#define SYS_ASSERT_INFO (   num)

typedef void(* SystemAssertCb_t)(SystemAssertLevel_t level, uint16_t assertNum)

Enumerator
ASSERT_INFO 
ASSERT_ERROR 
ASSERT_FATAL