Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
hwme_tdme.h File Reference

Definitions relating to HWME and TDME API messages. More...

#include "ca821x_config.h"
Include dependency graph for hwme_tdme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_HWME_ATTRIBUTE_SIZE   16
 
#define MAX_TDME_ATTRIBUTE_SIZE   2
 
#define MAX_TXPOWER_CH26   4
 Channel 26 Transmit Power limited to +4 dBm. More...
 

Enumerations

enum  hwme_status { HWME_SUCCESS = 0x00 , HWME_UNKNOWN = 0x01 , HWME_INVALID = 0x02 , HWME_NO_ACCESS = 0x03 }
 HWME Status Codes. More...
 
enum  hwme_wakeup_condition {
  HWME_WAKEUP_POWERUP = 0x00 , HWME_WAKEUP_WDT = 0x01 , HWME_WAKEUP_POFF_SLT = 0x02 , HWME_WAKEUP_POFF_GPIO = 0x03 ,
  HWME_WAKEUP_STBY_SLT = 0x04 , HWME_WAKEUP_STBY_GPIO = 0x05 , HWME_WAKEUP_ACTIVE_SLT = 0x06
}
 Potential values for HWME_WAKEUP_indication's WakeUpCondition parameter. More...
 
enum  lqi_mode { HWME_LQIMODE_CS = 0x00 , HWME_LQIMODE_ED = 0x01 }
 Potential values of HWME_LQIMODE. More...
 
enum  hwme_attribute {
  HWME_POWERCON = 0x00 , HWME_CHIPID = 0x01 , HWME_TXPOWER = 0x02 , HWME_CCAMODE = 0x03 ,
  HWME_EDTHRESHOLD = 0x04 , HWME_CSTHRESHOLD = 0x05 , HWME_EDVALUE = 0x06 , HWME_CSVALUE = 0x07 ,
  HWME_EDVALLP = 0x08 , HWME_CSVALLP = 0x09 , HWME_FREQOFFS = 0x0A , HWME_MACTIMER = 0x0B ,
  HWME_RANDOMNUM = 0x0C , HWME_TEMPERATURE = 0x0D , HWME_HSKEY = 0x0E , HWME_SYSCLKOUT = 0x0F ,
  HWME_LQIMODE = 0x10 , HWME_LQILIMIT = 0x11 , HWME_IMAGINARYINDIRECT = 0x17
}
 HWME Attribute IDs. More...
 
enum  haes_mode { HAES_MODE_ENCRYPT = 0 , HAES_MODE_DECRYPT = 1 }
 Hardware AES mode values. More...
 
enum  cca_mode { CCAM_EDORCS = 0 , CCAM_ED = 1 , CCAM_CS = 2 , CCAM_EDANDCS = 3 }
 CCA Mode. More...
 
enum  tdme_hw_err {
  TDME_ERR_NO_ERROR = 0x00 , TDME_ERR_LO_UNLOCK = 0x10 , TDME_ERR_SPI_INVALID = 0x20 , TDME_ERR_EX_STOF = 0x30 ,
  TDME_ERR_EX_STUF = 0x40 , TDME_ERR_EX_DIVBY0 = 0x50 , TDME_ERR_DMA_ACCESS = 0x60 , TDME_ERR_UNEXP_IRQ = 0x70 ,
  TDME_ERR_MALLOC_FAIL = 0x80 , TDME_ERR_SYSTEM_ERROR = 0x90
}
 Hardware Error Messages from TDME_ERROR_indication. More...
 
enum  tdme_status {
  TDME_SUCCESS = 0x00 , TDME_UNKNOWN = 0x01 , TDME_INVALID = 0x02 , TDME_NO_ACCESS = 0x03 ,
  TDME_LO_ERROR = 0x04 , TDME_FCS_ERROR = 0x05 , TDME_SHR_ERROR = 0x06 , TDME_PHR_ERROR = 0x07
}
 TDME Status Codes. More...
 
enum  tdme_test_mode {
  TDME_TEST_OFF = 0x00 , TDME_TEST_IDLE = 0x01 , TDME_TEST_TX = 0x02 , TDME_TEST_RX = 0x03 ,
  TDME_TEST_ED = 0x04 , TDME_TEST_LO_1 = 0x05 , TDME_TEST_LO_2 = 0x06 , TDME_TEST_LO_3 = 0x07
}
 TDME Test Modes. More...
 
enum  tdme_payload_type { TDME_TXD_RANDOM = 0x00 , TDME_TXD_SEQRANDOM = 0x01 , TDME_TXD_COUNT = 0x02 , TDME_TXD_APPENDED = 0x03 }
 
enum  tdme_attribute {
  TDME_CHANNEL = 0x00 , TDME_TX_CONFIG = 0x01 , TDME_ED_CONFIG = 0x02 , TDME_RX_CONFIG = 0x03 ,
  TDME_LO_1_CONFIG = 0x04 , TDME_LO_2_CONFIG = 0x05 , TDME_ATM_CONFIG = 0x06 , TDME_MPW2_OVWR = 0x07
}
 TDME Attribute IDs. More...
 

Detailed Description

Definitions relating to HWME and TDME API messages.