libneoradio2
Classes | Macros | Typedefs | Enumerations
radio2_frames.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  _neoRADIO2frame_identifyResponse
 
struct  _neoRADIO2frame_header
 
struct  _neoRADIO2frame
 
struct  _neoRADIO2frame_identify
 
struct  _neoRADIO2_deviceSettings
 
union  _neoRADIO2AOUT_channelConfig
 
struct  _neoRADIO2frame_calHeader
 
struct  _neoRADIO2settings_CAN
 
struct  _neoRADIO2settings_ChannelName
 
struct  _neoRADIO2_settings
 
struct  _neoRADIO2_SettingsPart
 
union  _bytesToFloat
 

Macros

#define PACKED   __attribute__((packed))
 
#define NEORADIO2_SETTINGS_PARTSIZE   32
 
#define NEORADIO2_DESTINATION_BANK1   0x01
 
#define NEORADIO2_DESTINATION_BANK2   0x02
 
#define NEORADIO2_DESTINATION_BANK3   0x04
 
#define NEORADIO2_DESTINATION_BANK4   0x08
 
#define NEORADIO2_DESTINATION_BANK5   0x10
 
#define NEORADIO2_DESTINATION_BANK6   0x20
 
#define NEORADIO2_DESTINATION_BANK7   0x40
 
#define NEORADIO2_DESTINATION_BANK8   0x80
 

Typedefs

typedef enum _neoRADIO2_deviceTypes neoRADIO2_deviceTypes
 
typedef struct _neoRADIO2frame_identifyResponse neoRADIO2frame_identifyResponse
 
typedef struct _neoRADIO2frame_header neoRADIO2frame_header
 
typedef struct _neoRADIO2frame neoRADIO2frame
 
typedef struct _neoRADIO2frame_identify neoRADIO2frame_identify
 
typedef enum _neoRADIO2frame_commands neoRADIO2frame_commands
 
typedef enum _neoRADIO2frame_deviceStatus neoRADIO2frame_deviceStatus
 
typedef struct _neoRADIO2_deviceSettings neoRADIO2_deviceSettings
 
typedef union _neoRADIO2AOUT_channelConfig neoRADIO2AOUT_channelConfig
 
typedef enum _neoRADIO2states neoRADIO2states
 
typedef struct _neoRADIO2frame_calHeader neoRADIO2frame_calHeader
 
typedef enum _neoRADIO2CalType neoRADIO2CalType
 
typedef enum _neoRADIO2_CANMsgType neoRADIO2_CANMsgType
 
typedef struct _neoRADIO2settings_CAN neoRADIO2settings_CAN
 
typedef struct _neoRADIO2settings_ChannelName neoRADIO2Settings_ChannelName
 
typedef struct _neoRADIO2_settings neoRADIO2_settings
 
typedef struct _neoRADIO2_SettingsPart neoRADIO2_SettingsPart
 
typedef union _bytesToFloat bytesToFloat
 

Enumerations

enum  _neoRADIO2_deviceTypes {
  NEORADIO2_DEVTYPE_TC = 0, NEORADIO2_DEVTYPE_DIO = 1, NEORADIO2_DEVTYPE_PWRRLY = 2, NEORADIO2_DEVTYPE_AIN = 3,
  NEORADIO2_DEVTYPE_AOUT = 4, NEORADIO2_DEVTYPE_CANHUB = 5, NEORADIO2_DEVTYPE_BADGE = 6, NEORADIO2_DEVTYPE_HOST = 0xFF
}
 
enum  _neoRADIO2frame_commands {
  NEORADIO2_COMMAND_START = 0x01, NEORADIO2_COMMAND_IDENTIFY = 0x02, NEORADIO2_COMMAND_WRITE_DATA = 0x03, NEORADIO2_COMMAND_READ_DATA = 0x04,
  NEORADIO2_COMMAND_WRITE_SETTINGS = 0x05, NEORADIO2_COMMAND_READ_SETTINGS = 0x06, NEORADIO2_COMMAND_DONT_USE1 = 0x07, NEORADIO2_COMMAND_DONT_USE2 = 0x08,
  NEORADIO2_COMMAND_TOGGLE_LED = 0x09, NEORADIO2_COMMAND_READ_PCBSN = 0x10, NEORADIO2_COMMAND_READ_CAL = 0x20, NEORADIO2_COMMAND_WRITE_CAL = 0x21,
  NEORADIO2_COMMAND_WRITE_CALPOINTS = 0x22, NEORADIO2_COMMAND_STORE_CAL = 0x23, NEORADIO2_COMMAND_READ_CALPOINTS = 0x24, NEORADIO2_COMMAND_READ_CAL_INFO = 0x25,
  NEORADIO2_COMMAND_CLEAR_CAL = 0x26, NEORADIO2_COMMAND_BL_WRITEBUFFER = 0xFA, NEORADIO2_COMMAND_BL_WRITETOFLASH = 0xFB, NEORADIO2_COMMAND_BL_VERIFY = 0xFC,
  NEORADIO2_COMMAND_ENTERBOOT = 0xFF
}
 
enum  _neoRADIO2frame_deviceStatus {
  NEORADIO2_STATUS_SENSOR = 0x00, NEORADIO2_STATUS_FIRMWARE = 0x01, NEORADIO2_STATUS_IDENTIFY = 0x02, NEORADIO2_STATUS_READ_SETTINGS = 0x03,
  NEORADIO2_STATUS_WRITE_SETTINGS = 0x04, NEORADIO2_STATUS_READ_PCBSN = 0x05, NEORADIO2_STATUS_CAL = 0x06, NEORADIO2_STATUS_CAL_STORE = 0x07,
  NEORADIO2_STATUS_CAL_INFO = 0x08, NEORADIO2_STATUS_CALPOINTS = 0x09, NEORADIO2_STATUS_NEED_ID = 0xFF
}
 
enum  _neoRADIO2states { NEORADIO2STATE_RUNNING = 0, NEORADIO2STATE_INBOOTLOADER = 1 }
 
enum  _neoRADIO2CalType { NEORADIO2CALTYPE_ENABLED = 0, NEORADIO2CALTYPE_NOCAL = 1, NEORADIO2CALTYPE_NOCAL_ENHANCED = 2 }
 
enum  _neoRADIO2_CANMsgType { NEORADIO2_CANMSGTYPE_SID_CLASSIC = 0, NEORADIO2_CANMSGTYPE_XID_CLASSIC = 1, NEORADIO2_CANMSGTYPE_SID_FD = 2, NEORADIO2_CANMSGTYPE_XID_FD = 3 }
 

Macro Definition Documentation

◆ NEORADIO2_DESTINATION_BANK1

#define NEORADIO2_DESTINATION_BANK1   0x01

◆ NEORADIO2_DESTINATION_BANK2

#define NEORADIO2_DESTINATION_BANK2   0x02

◆ NEORADIO2_DESTINATION_BANK3

#define NEORADIO2_DESTINATION_BANK3   0x04

◆ NEORADIO2_DESTINATION_BANK4

#define NEORADIO2_DESTINATION_BANK4   0x08

◆ NEORADIO2_DESTINATION_BANK5

#define NEORADIO2_DESTINATION_BANK5   0x10

◆ NEORADIO2_DESTINATION_BANK6

#define NEORADIO2_DESTINATION_BANK6   0x20

◆ NEORADIO2_DESTINATION_BANK7

#define NEORADIO2_DESTINATION_BANK7   0x40

◆ NEORADIO2_DESTINATION_BANK8

#define NEORADIO2_DESTINATION_BANK8   0x80

◆ NEORADIO2_SETTINGS_PARTSIZE

#define NEORADIO2_SETTINGS_PARTSIZE   32

◆ PACKED

#define PACKED   __attribute__((packed))

Typedef Documentation

◆ bytesToFloat

typedef union _bytesToFloat bytesToFloat

◆ neoRADIO2_CANMsgType

◆ neoRADIO2_deviceSettings

◆ neoRADIO2_deviceTypes

◆ neoRADIO2_settings

◆ neoRADIO2_SettingsPart

◆ neoRADIO2AOUT_channelConfig

◆ neoRADIO2CalType

◆ neoRADIO2frame

◆ neoRADIO2frame_calHeader

◆ neoRADIO2frame_commands

◆ neoRADIO2frame_deviceStatus

◆ neoRADIO2frame_header

◆ neoRADIO2frame_identify

◆ neoRADIO2frame_identifyResponse

◆ neoRADIO2settings_CAN

◆ neoRADIO2Settings_ChannelName

◆ neoRADIO2states

Enumeration Type Documentation

◆ _neoRADIO2_CANMsgType

Enumerator
NEORADIO2_CANMSGTYPE_SID_CLASSIC 
NEORADIO2_CANMSGTYPE_XID_CLASSIC 
NEORADIO2_CANMSGTYPE_SID_FD 
NEORADIO2_CANMSGTYPE_XID_FD 

◆ _neoRADIO2_deviceTypes

Enumerator
NEORADIO2_DEVTYPE_TC 
NEORADIO2_DEVTYPE_DIO 
NEORADIO2_DEVTYPE_PWRRLY 
NEORADIO2_DEVTYPE_AIN 
NEORADIO2_DEVTYPE_AOUT 
NEORADIO2_DEVTYPE_CANHUB 
NEORADIO2_DEVTYPE_BADGE 
NEORADIO2_DEVTYPE_HOST 

◆ _neoRADIO2CalType

Enumerator
NEORADIO2CALTYPE_ENABLED 
NEORADIO2CALTYPE_NOCAL 
NEORADIO2CALTYPE_NOCAL_ENHANCED 

◆ _neoRADIO2frame_commands

Enumerator
NEORADIO2_COMMAND_START 
NEORADIO2_COMMAND_IDENTIFY 
NEORADIO2_COMMAND_WRITE_DATA 
NEORADIO2_COMMAND_READ_DATA 
NEORADIO2_COMMAND_WRITE_SETTINGS 
NEORADIO2_COMMAND_READ_SETTINGS 
NEORADIO2_COMMAND_DONT_USE1 
NEORADIO2_COMMAND_DONT_USE2 
NEORADIO2_COMMAND_TOGGLE_LED 
NEORADIO2_COMMAND_READ_PCBSN 
NEORADIO2_COMMAND_READ_CAL 
NEORADIO2_COMMAND_WRITE_CAL 
NEORADIO2_COMMAND_WRITE_CALPOINTS 
NEORADIO2_COMMAND_STORE_CAL 
NEORADIO2_COMMAND_READ_CALPOINTS 
NEORADIO2_COMMAND_READ_CAL_INFO 
NEORADIO2_COMMAND_CLEAR_CAL 
NEORADIO2_COMMAND_BL_WRITEBUFFER 
NEORADIO2_COMMAND_BL_WRITETOFLASH 
NEORADIO2_COMMAND_BL_VERIFY 
NEORADIO2_COMMAND_ENTERBOOT 

◆ _neoRADIO2frame_deviceStatus

Enumerator
NEORADIO2_STATUS_SENSOR 
NEORADIO2_STATUS_FIRMWARE 
NEORADIO2_STATUS_IDENTIFY 
NEORADIO2_STATUS_READ_SETTINGS 
NEORADIO2_STATUS_WRITE_SETTINGS 
NEORADIO2_STATUS_READ_PCBSN 
NEORADIO2_STATUS_CAL 
NEORADIO2_STATUS_CAL_STORE 
NEORADIO2_STATUS_CAL_INFO 
NEORADIO2_STATUS_CALPOINTS 
NEORADIO2_STATUS_NEED_ID 

◆ _neoRADIO2states

Enumerator
NEORADIO2STATE_RUNNING 
NEORADIO2STATE_INBOOTLOADER