#include "typedefs_shadow.h"
Go to the source code of this file.
#define __attribute__ | ( | x | ) |
EtherCAT protocol for RoNeX SPI stacker, 02.
Definition at line 28 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ADC16_INPUT_RESOLUTION 16 |
Definition at line 45 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ADC16_INPUT_SAMPLE_RATE 1000 |
Definition at line 46 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ANALOGUE_INPUT_JUSTIFICATION RIGHT |
Definition at line 35 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ANALOGUE_INPUT_RESOLUTION 12 |
Definition at line 34 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ANALOGUE_OUTPUT_JUSTIFICATION RIGHT |
Definition at line 38 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define ANALOGUE_OUTPUT_RESOLUTION 0 |
Definition at line 37 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define COMMAND_ADDRESS 0x1000 |
ET1200 address containing the Command Structure.
Definition at line 182 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define COMMAND_ARRAY_SIZE_BYTES (sizeof(RONEX_COMMAND_02000008)) |
Definition at line 172 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define COMMAND_ARRAY_SIZE_WORDS (sizeof(RONEX_COMMAND_02000008)/2) |
Definition at line 173 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define IMPLEMENTED_FEATURE_ADC16_READ_DIFFERENTIAL 0x0008 |
Definition at line 100 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define IMPLEMENTED_FEATURE_ADC16_READ_SINGLE_ENDED 0x0004 |
Definition at line 99 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define IMPLEMENTED_FEATURE_ADC16_SENSOR_BIAS 0x0010 |
Definition at line 101 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define IMPLEMENTED_FEATURE_ANALOGUE_INPUTS 0x0001 |
Implemented features -------------------- Due to the complexity of the requirements for this module, and the need to have something working very quickly, not all of the features will be implemented immediately. Essential features will be implemented first, with less important ones coming later.
You can ask the node which features are implemented using the RONEX_COMMAND_02000008_COMMAND_TYPE_CONFIG_INFO. The returned CONFIG_INFO_02000008 contains the implemented_features word.
Definition at line 97 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define IMPLEMENTED_FEATURE_DIGITAL_IO 0x0002 |
Definition at line 98 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define MAXIMUM_NUM_STACKERS 3 |
Definition at line 42 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define NUM_ADC16_INPUTS 48 |
Definition at line 44 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define NUM_ANALOGUE_INPUTS 6 |
Definition at line 33 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define NUM_ANALOGUE_OUTPUTS 0 |
Definition at line 36 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define NUM_DIGITAL_IO 6 |
Definition at line 39 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define PRODUCT_ID 0x02000008 |
Definition at line 41 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define PRODUCT_NAME "adc16" |
Definition at line 40 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define PROTOCOL_TYPE EC_QUEUED |
Definition at line 181 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_CONFIG_0 0x00 |
Definition at line 103 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_CONFIG_1 0x01 |
Definition at line 104 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_GPIOC 0x07 |
Definition at line 110 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_GPIOD 0x08 |
Definition at line 111 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_ID 0x09 |
Definition at line 112 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_MUXDIF 0x03 |
Definition at line 106 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_MUXSCH 0x02 |
Definition at line 105 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_MUXSG0 0x04 |
Definition at line 107 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_MUXSG1 0x05 |
Definition at line 108 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_ADS1158_REGISTER_SYSRED 0x06 |
Definition at line 109 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_OVER_TEMPERATURE_ERROR 0x0002 |
Definition at line 81 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_RESERVED_ERRORS 0x00FC |
Definition at line 80 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_0_ERROR 0x0100 |
Definition at line 76 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_0_PRESENT 0x1000 |
Flags ----- Available in RONEX_STATUS_02000008.config_info.flags To receive this information, use RONEX_COMMAND_02000008_COMMAND_TYPE_CONFIG_INFO in the RONEX_COMMAND_02000008 struct
Definition at line 72 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_1_ERROR 0x0200 |
Definition at line 77 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_1_PRESENT 0x2000 |
Definition at line 73 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_2_ERROR 0x0400 |
Definition at line 78 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_2_PRESENT 0x4000 |
Definition at line 74 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_3_ERROR 0x0800 |
Definition at line 79 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_STACKER_3_PRESENT 0x8000 |
Definition at line 75 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_02000008_FLAGS_UNKNOWN_ERROR 0x0001 |
Definition at line 82 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_ADC_SAMPLE_RATE_HZ 1000 |
Maximum possible ADC sample rate. Don't send EtherCAT packets faster than this.
Definition at line 32 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_ERROR 0x00FF |
If this is returned from the node, then some kind of error has happened.
Definition at line 62 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_GET_CONFIG_INFO 0x0004 |
This requests a CONFIG_INFO_02000008 block from the node.
Definition at line 61 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_INVALID 0x0000 |
Zeros imply a failed EtherCAT packet, so this it taken to be invalid.
Command Types ------------- COMMAND_TYPE values are sent by the host to tell the node the type of data contained in the COMMAND struct, or to request specific info from the node. The node will always return the same command_type in its status packet.
Definition at line 57 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_NORMAL 0x0001 |
This is for normal operation.
Definition at line 58 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_SET_REG_VAL 0x0002 |
This is used to configure the single ended / differential inputs.
Definition at line 59 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_COMMAND_TYPE_WRITE_REGS 0x0003 |
This is used to configure the single ended / differential inputs.
Definition at line 60 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_02000008_MASTER_CLOCK_SPEED_HZ 64000000 |
Master clock. This is divided down to create the SPI clock.
Definition at line 31 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_COMMAND_STRUCT RONEX_COMMAND_02000008 |
Required for et1200_interface.h to be generic.
Definition at line 185 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define RONEX_STATUS_STRUCT RONEX_STATUS_02000008 |
Required for et1200_interface.h to be generic.
Definition at line 186 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define STACKER_TYPE 3 |
range [1..13]
Definition at line 43 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define STATUS_ADDRESS (COMMAND_ADDRESS+sizeof(RONEX_COMMAND_02000008) *4) |
ET1200 address containing the Status Structure.
Definition at line 183 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define STATUS_ARRAY_SIZE_BYTES (sizeof(RONEX_STATUS_02000008)) |
Definition at line 174 of file Ronex_Protocol_0x02000008_ADC16_00.h.
#define STATUS_ARRAY_SIZE_WORDS (sizeof(RONEX_STATUS_02000008)/2) |
Definition at line 175 of file Ronex_Protocol_0x02000008_ADC16_00.h.