Classes | Macros | Enumerations
arduinodaq2pc-structs.h File Reference
#include <stdlib.h>
Include dependency graph for arduinodaq2pc-structs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TBaseFrame< Payload >
 
struct  TFrame_ADC_readings
 
struct  TFrame_ADC_readings_payload_t
 
struct  TFrame_ENCODER_ABS_reading
 
struct  TFrame_ENCODER_ABS_reading_payload_t
 
struct  TFrame_ENCODERS_readings
 
struct  TFrame_ENCODERS_readings_payload_t
 
struct  TFrameCMD_ADC_start
 
struct  TFrameCMD_ADC_start_payload_t
 
struct  TFrameCMD_ADC_stop
 
struct  TFrameCMD_ADC_stop_payload_t
 
struct  TFrameCMD_EMS22A_start
 
struct  TFrameCMD_EMS22A_start_payload_t
 
struct  TFrameCMD_EMS22A_stop
 
struct  TFrameCMD_EMS22A_stop_payload_t
 
struct  TFrameCMD_ENCODERS_start
 
struct  TFrameCMD_ENCODERS_start_payload_t
 
struct  TFrameCMD_ENCODERS_stop
 
struct  TFrameCMD_ENCODERS_stop_payload_t
 
struct  TFrameCMD_GPIO_output
 
struct  TFrameCMD_GPIO_output_payload_t
 
struct  TFrameCMD_GPIO_read
 
struct  TFrameCMD_GPIO_read_payload_t
 
struct  TFrameCMD_NOP
 
struct  TFrameCMD_NOP_payload_t
 
struct  TFrameCMD_SET_PWM
 
struct  TFrameCMD_SET_PWM_payload_t
 
struct  TFrameCMD_SetDAC
 
struct  TFrameCMD_SetDAC_payload_t
 

Macros

#define FRAME_END_FLAG   0x96
 
#define FRAME_START_FLAG   0x69
 

Enumerations

enum  opcode_t {
  OP_NOP = 0x00, OP_SET_DAC = 0x10, OP_SET_GPIO = 0x11, OP_GET_GPIO = 0x12,
  OP_START_CONT_ADC = 0x20, OP_STOP_CONT_ADC = 0x21, OP_SET_PWM = 0x25, OP_START_ENCODERS = 0x30,
  OP_STOP_ENCODERS = 0x31, OP_START_EMS22A = 0x40, OP_STOP_EMS22A = 0x41, RESP_OFFSET = 0x70,
  RESP_NOP = OP_NOP + RESP_OFFSET, RESP_SET_DAC = OP_SET_DAC + RESP_OFFSET, RESP_SET_GPIO = OP_SET_GPIO + RESP_OFFSET, RESP_GET_GPIO = OP_GET_GPIO + RESP_OFFSET,
  RESP_START_CONT_ADC = OP_START_CONT_ADC + RESP_OFFSET, RESP_STOP_CONT_ADC = OP_STOP_CONT_ADC + RESP_OFFSET, RESP_START_ENCODERS = OP_START_ENCODERS + RESP_OFFSET, RESP_STOP_ENCODERS = OP_STOP_ENCODERS + RESP_OFFSET,
  RESP_START_EMS22A = OP_START_EMS22A + RESP_OFFSET, RESP_STOP_EMS22A = OP_STOP_EMS22A + RESP_OFFSET, RESP_ADC_READINGS = 0x92, RESP_ENCODER_READINGS = 0x93,
  RESP_EMS22A_READINGS = 0x94, RESP_SET_PWM = OP_SET_PWM + RESP_OFFSET, RESP_CHECKSUM_ERROR = 0xfa, RESP_FRAME_ERROR = 0xfb,
  RESP_INVALID_PARAMS = 0xfc, RESP_WRONG_LEN = 0xfd, RESP_UNKNOWN_OPCODE = 0xfe
}
 

Macro Definition Documentation

#define FRAME_END_FLAG   0x96

Definition at line 62 of file arduinodaq2pc-structs.h.

#define FRAME_START_FLAG   0x69

Definition at line 61 of file arduinodaq2pc-structs.h.

Enumeration Type Documentation

enum opcode_t
Enumerator
OP_NOP 
OP_SET_DAC 
OP_SET_GPIO 
OP_GET_GPIO 
OP_START_CONT_ADC 
OP_STOP_CONT_ADC 
OP_SET_PWM 
OP_START_ENCODERS 
OP_STOP_ENCODERS 
OP_START_EMS22A 
OP_STOP_EMS22A 
RESP_OFFSET 
RESP_NOP 
RESP_SET_DAC 
RESP_SET_GPIO 
RESP_GET_GPIO 
RESP_START_CONT_ADC 
RESP_STOP_CONT_ADC 
RESP_START_ENCODERS 
RESP_STOP_ENCODERS 
RESP_START_EMS22A 
RESP_STOP_EMS22A 
RESP_ADC_READINGS 
RESP_ENCODER_READINGS 
RESP_EMS22A_READINGS 
RESP_SET_PWM 
RESP_CHECKSUM_ERROR 
RESP_FRAME_ERROR 
RESP_INVALID_PARAMS 
RESP_WRONG_LEN 
RESP_UNKNOWN_OPCODE 

Definition at line 64 of file arduinodaq2pc-structs.h.



arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03