# RadioLib: src/TypeDef.h Source File

TypeDef.h
#if !defined(_RADIOLIB_TYPES_H)
#define _RADIOLIB_TYPES_H
// user build options may override the default
#include "BuildOptUser.h"
#include "BuildOpt.h"
#define RADIOLIB_SHAPING_NONE (0x00)
#define RADIOLIB_SHAPING_0_3 (0x01)
#define RADIOLIB_SHAPING_0_5 (0x02)
#define RADIOLIB_SHAPING_0_7 (0x03)
#define RADIOLIB_SHAPING_1_0 (0x04)
#define RADIOLIB_ENCODING_NRZ (0x00)
#define RADIOLIB_ENCODING_MANCHESTER (0x01)
#define RADIOLIB_ENCODING_WHITENING (0x02)
#define RADIOLIB_STANDBY_DEFAULT (0x00)
#define RADIOLIB_STANDBY_WARM (0x01)
#define RADIOLIB_STANDBY_COLD (0x02)
// common status codes
#define RADIOLIB_ERR_NONE (0)
#define RADIOLIB_ERR_UNKNOWN (-1)
// SX127x/RFM9x status codes
#define RADIOLIB_ERR_CHIP_NOT_FOUND (-2)
#define RADIOLIB_ERR_MEMORY_ALLOCATION_FAILED (-3)
#define RADIOLIB_ERR_PACKET_TOO_LONG (-4)
#define RADIOLIB_ERR_TX_TIMEOUT (-5)
#define RADIOLIB_ERR_RX_TIMEOUT (-6)
#define RADIOLIB_ERR_CRC_MISMATCH (-7)
#define RADIOLIB_ERR_INVALID_BANDWIDTH (-8)
#define RADIOLIB_ERR_INVALID_SPREADING_FACTOR (-9)
#define RADIOLIB_ERR_INVALID_CODING_RATE (-10)
#define RADIOLIB_ERR_INVALID_BIT_RANGE (-11)
#define RADIOLIB_ERR_INVALID_FREQUENCY (-12)
#define RADIOLIB_ERR_INVALID_OUTPUT_POWER (-13)
#define RADIOLIB_PREAMBLE_DETECTED (-14)
#define RADIOLIB_CHANNEL_FREE (-15)
#define RADIOLIB_ERR_SPI_WRITE_FAILED (-16)
#define RADIOLIB_ERR_INVALID_CURRENT_LIMIT (-17)
#define RADIOLIB_ERR_INVALID_PREAMBLE_LENGTH (-18)
#define RADIOLIB_ERR_INVALID_GAIN (-19)
#define RADIOLIB_ERR_WRONG_MODEM (-20)
#define RADIOLIB_ERR_INVALID_NUM_SAMPLES (-21)
#define RADIOLIB_ERR_INVALID_RSSI_OFFSET (-22)
#define RADIOLIB_ERR_INVALID_ENCODING (-23)
#define RADIOLIB_ERR_LORA_HEADER_DAMAGED (-24)
#define RADIOLIB_ERR_UNSUPPORTED (-25)
#define RADIOLIB_ERR_INVALID_DIO_PIN (-26)
#define RADIOLIB_ERR_INVALID_RSSI_THRESHOLD (-27)
#define RADIOLIB_ERR_NULL_POINTER (-28)
// RF69-specific status codes
#define RADIOLIB_ERR_INVALID_BIT_RATE (-101)
#define RADIOLIB_ERR_INVALID_FREQUENCY_DEVIATION (-102)
#define RADIOLIB_ERR_INVALID_BIT_RATE_BW_RATIO (-103)
#define RADIOLIB_ERR_INVALID_RX_BANDWIDTH (-104)
#define RADIOLIB_ERR_INVALID_SYNC_WORD (-105)
#define RADIOLIB_ERR_INVALID_DATA_SHAPING (-106)
#define RADIOLIB_ERR_INVALID_MODULATION (-107)
#define RADIOLIB_ERR_INVALID_OOK_RSSI_PEAK_TYPE (-108)
// APRS status codes
#define RADIOLIB_ERR_INVALID_SYMBOL (-201)
#define RADIOLIB_ERR_INVALID_MIC_E_TELEMETRY (-202)
#define RADIOLIB_ERR_INVALID_MIC_E_TELEMETRY_LENGTH (-203)
#define RADIOLIB_ERR_MIC_E_TELEMETRY_STATUS (-204)
// SSDV status codes
#define RADIOLIB_ERR_INVALID_SSDV_MODE (-301)
#define RADIOLIB_ERR_INVALID_IMAGE_SIZE (-302)
#define RADIOLIB_ERR_INVALID_IMAGE_QUALITY (-303)
#define RADIOLIB_ERR_INVALID_SUBSAMPLING (-304)
// RTTY status codes
#define RADIOLIB_ERR_INVALID_RTTY_SHIFT (-401)
#define RADIOLIB_ERR_UNSUPPORTED_ENCODING (-402)
// nRF24-specific status codes
#define RADIOLIB_ERR_INVALID_DATA_RATE (-501)
#define RADIOLIB_ERR_INVALID_ADDRESS_WIDTH (-502)
#define RADIOLIB_ERR_INVALID_PIPE_NUMBER (-503)
#define RADIOLIB_ERR_ACK_NOT_RECEIVED (-504)
// CC1101-specific status codes
#define RADIOLIB_ERR_INVALID_NUM_BROAD_ADDRS (-601)
// SX126x-specific status codes
#define RADIOLIB_ERR_INVALID_CRC_CONFIGURATION (-701)
#define RADIOLIB_LORA_DETECTED (-702)
#define RADIOLIB_ERR_INVALID_TCXO_VOLTAGE (-703)
#define RADIOLIB_ERR_INVALID_MODULATION_PARAMETERS (-704)
#define RADIOLIB_ERR_SPI_CMD_TIMEOUT (-705)
#define RADIOLIB_ERR_SPI_CMD_INVALID (-706)
#define RADIOLIB_ERR_SPI_CMD_FAILED (-707)
#define RADIOLIB_ERR_INVALID_SLEEP_PERIOD (-708)
#define RADIOLIB_ERR_INVALID_RX_PERIOD (-709)
// AX.25-specific status codes
#define RADIOLIB_ERR_INVALID_CALLSIGN (-801)
#define RADIOLIB_ERR_INVALID_NUM_REPEATERS (-802)
#define RADIOLIB_ERR_INVALID_REPEATER_CALLSIGN (-803)
// SX128x-specific status codes
#define RADIOLIB_ERR_RANGING_TIMEOUT (-901)
// Pager-specific status codes
#define RADIOLIB_ERR_INVALID_PAYLOAD (-1001)
#define RADIOLIB_ERR_ADDRESS_NOT_FOUND (-1002)
#define RADIOLIB_ERR_INVALID_FUNCTION (-1003)
// LoRaWAN-specific status codes
#define RADIOLIB_ERR_NETWORK_NOT_JOINED (-1101)
#define RADIOLIB_ERR_DOWNLINK_MALFORMED (-1102)
#define RADIOLIB_ERR_INVALID_REVISION (-1103)
#define RADIOLIB_ERR_INVALID_PORT (-1104)
#define RADIOLIB_ERR_NO_RX_WINDOW (-1105)
#define RADIOLIB_ERR_INVALID_CHANNEL (-1106)
#define RADIOLIB_ERR_INVALID_CID (-1107)
#define RADIOLIB_ERR_UPLINK_UNAVAILABLE (-1108)
#define RADIOLIB_ERR_COMMAND_QUEUE_FULL (-1109)
#define RADIOLIB_ERR_COMMAND_QUEUE_ITEM_NOT_FOUND (-1110)
#define RADIOLIB_ERR_JOIN_NONCE_INVALID (-1111)
#define RADIOLIB_ERR_N_FCNT_DOWN_INVALID (-1112)
#define RADIOLIB_ERR_A_FCNT_DOWN_INVALID (-1113)
#define RADIOLIB_ERR_DWELL_TIME_EXCEEDED (-1114)
#define RADIOLIB_ERR_CHECKSUM_MISMATCH (-1115)
#define RADIOLIB_LORAWAN_NO_DOWNLINK (-1116)
// LR11x0-specific status codes
#define RADIOLIB_ERR_INVALID_WIFI_TYPE (-1200)
typedef unsigned long RadioLibTime_t;
#endif
RadioLibTime_t
unsigned long RadioLibTime_t
Type used for durations in RadioLib.
Definition: TypeDef.h:586