Serial Wombat 4A and 4B Firmware
Macros | Enumerations
protocol.h File Reference

Go to the source code of this file.

Macros

#define RXBUFFER16(_a)   ((uint16_t)Rxbuffer[_a] + (((uint16_t)Rxbuffer[_a+1]) <<8))
 
#define TXBUFFER16(_index, _value)   {Txbuffer[_index] = (uint8_t)(_value & 0xFF); Txbuffer[_index + 1] = (uint8_t)(_value >>8);}
 
#define RXBUFFER32(_a)   ((uint32_t)Rxbuffer[_a] + (((uint32_t)Rxbuffer[_a+1]) <<8)+ (((uint32_t)Rxbuffer[_a+2]) <<16)+ (((uint32_t)Rxbuffer[_a+3]) <<24))
 

Enumerations

enum  CONFIGURE_CHANNEL_MODE_t {
  COMMAND_ASCII_ECHO = '!', COMMAND_ASCII_LINEFEED = '^', COMMAND_BOOTLOAD = 'B', COMMAND_ASCII_RESET = 'R',
  COMMAND_ASCII_SLEEP = 'S', COMMAND_ASCII_VERSION = 'V', COMMAND_ASCII_PWM = 'W', COMMAND_ASCII_SET_PUBLIC_DATA = 'd',
  COMMAND_ASCII_GET_PUBLIC_DATA = 'g', COMMAND_ASCII_SET_PIN = 'p', COMMAND_BINARY_READ_PIN_BUFFFER = 0x81, COMMAND_BINARY_SET_PIN_BUFFFER = 0x82,
  COMMAND_BINARY_READ_USER_BUFFER = 0x83, COMMAND_BINARY_WRITE_USER_BUFFER = 0x84, COMMAND_BINARY_WRITE_USER_BUFFER_CONTINUE = 0x85, COMMAND_BINARY_QUEUE_INITIALIZE = 0x90,
  COMMAND_BINARY_QUEUE_ADD_BYTES = 0x91, COMMAND_BINARY_QUEUE_ADD_7BYTES = 0x92, COMMAND_BINARY_QUEUE_READ_BYTES = 0x93, COMMAND_BINARY_QUEUE_GET_INFO = 0x94,
  COMMAND_BINARY_QUEUE_CLONE = 0x95, COMMAND_BINARY_CONFIGURE = 0x9F, COMMAND_BINARY_READ_RAM = 0xA0, COMMAND_BINARY_READ_FLASH = 0xA1,
  COMMAND_BINARY_READ_EEPROM = 0xA2, COMMAND_BINARY_WRITE_RAM = 0xA3, COMMAND_BINARY_WRITE_FLASH = 0xA4, COMMAND_CALIBRATE_ANALOG = 0xA5,
  COMMAND_ENABLE_2ND_UART = 0xA6, COMMAND_READ_LAST_ERROR_PACKET = 0xA7, COMMAND_UART0_TX_7BYTES = 0xB0, COMMAND_UART0_RX_7BYTES = 0xB1,
  COMMAND_UART1_TX_7BYTES = 0xB2, COMMAND_UART1_RX_7BYTES = 0xB3, COMMAND_BINARY_TEST_SEQUENCE = 0xB4, COMMAND_BINARY_RW_PIN_MEMORY = 0xB5,
  CONFIGURE_CHANNEL_MODE_0 = 200, CONFIGURE_CHANNEL_MODE_1 = 201, CONFIGURE_CHANNEL_MODE_2 = 202, CONFIGURE_CHANNEL_MODE_3 = 203,
  CONFIGURE_CHANNEL_MODE_4 = 204, CONFIGURE_CHANNEL_MODE_5 = 205, CONFIGURE_CHANNEL_MODE_6 = 206, CONFIGURE_CHANNEL_MODE_7 = 207,
  CONFIGURE_CHANNEL_MODE_8 = 208, CONFIGURE_CHANNEL_MODE_9 = 209, CONFIGURE_CHANNEL_MODE_10 = 210, CONFIGURE_CHANNEL_MODE_SCALED_OUTPUT = 210,
  CONFIGURE_CHANNEL_MODE_INPUT_PROCESSING = 211, CONFIGURE_CHANNEL_MODE_11 = 211, CONFIGURE_CHANNEL_MODE_12 = 212, CONFIGURE_CHANNEL_MODE_13 = 213,
  CONFIGURE_CHANNEL_MODE_14 = 214, CONFIGURE_CHANNEL_MODE_15 = 215, CONFIGURE_CHANNEL_MODE_16 = 216, CONFIGURE_CHANNEL_MODE_17 = 217,
  CONFIGURE_CHANNEL_MODE_18 = 218, CONFIGURE_CHANNEL_MODE_DISABLE = 219, CONFIGURE_CHANNEL_MODE_HW_0 = 220, CONFIGURE_CHANNEL_MODE_HW_1 = 221,
  CONFIGURE_CHANNEL_MODE_HW_2 = 222, CONFIGURE_CHANNEL_MODE_HW_3 = 223
}
 

Macro Definition Documentation

◆ RXBUFFER16

#define RXBUFFER16 (   _a)    ((uint16_t)Rxbuffer[_a] + (((uint16_t)Rxbuffer[_a+1]) <<8))

◆ RXBUFFER32

#define RXBUFFER32 (   _a)    ((uint32_t)Rxbuffer[_a] + (((uint32_t)Rxbuffer[_a+1]) <<8)+ (((uint32_t)Rxbuffer[_a+2]) <<16)+ (((uint32_t)Rxbuffer[_a+3]) <<24))

◆ TXBUFFER16

#define TXBUFFER16 (   _index,
  _value 
)    {Txbuffer[_index] = (uint8_t)(_value & 0xFF); Txbuffer[_index + 1] = (uint8_t)(_value >>8);}

Enumeration Type Documentation

◆ CONFIGURE_CHANNEL_MODE_t

Enumerator
COMMAND_ASCII_ECHO 
COMMAND_ASCII_LINEFEED 
COMMAND_BOOTLOAD 
COMMAND_ASCII_RESET 
COMMAND_ASCII_SLEEP 
COMMAND_ASCII_VERSION 
COMMAND_ASCII_PWM 
COMMAND_ASCII_SET_PUBLIC_DATA 
COMMAND_ASCII_GET_PUBLIC_DATA 
COMMAND_ASCII_SET_PIN 
COMMAND_BINARY_READ_PIN_BUFFFER 
COMMAND_BINARY_SET_PIN_BUFFFER 
COMMAND_BINARY_READ_USER_BUFFER 
COMMAND_BINARY_WRITE_USER_BUFFER 
COMMAND_BINARY_WRITE_USER_BUFFER_CONTINUE 
COMMAND_BINARY_QUEUE_INITIALIZE 
COMMAND_BINARY_QUEUE_ADD_BYTES 
COMMAND_BINARY_QUEUE_ADD_7BYTES 
COMMAND_BINARY_QUEUE_READ_BYTES 
COMMAND_BINARY_QUEUE_GET_INFO 
COMMAND_BINARY_QUEUE_CLONE 
COMMAND_BINARY_CONFIGURE 
COMMAND_BINARY_READ_RAM 
COMMAND_BINARY_READ_FLASH 
COMMAND_BINARY_READ_EEPROM 
COMMAND_BINARY_WRITE_RAM 
COMMAND_BINARY_WRITE_FLASH 
COMMAND_CALIBRATE_ANALOG 
COMMAND_ENABLE_2ND_UART 
COMMAND_READ_LAST_ERROR_PACKET 
COMMAND_UART0_TX_7BYTES 
COMMAND_UART0_RX_7BYTES 
COMMAND_UART1_TX_7BYTES 
COMMAND_UART1_RX_7BYTES 
COMMAND_BINARY_TEST_SEQUENCE 
COMMAND_BINARY_RW_PIN_MEMORY 
CONFIGURE_CHANNEL_MODE_0 
CONFIGURE_CHANNEL_MODE_1 
CONFIGURE_CHANNEL_MODE_2 
CONFIGURE_CHANNEL_MODE_3 
CONFIGURE_CHANNEL_MODE_4 
CONFIGURE_CHANNEL_MODE_5 
CONFIGURE_CHANNEL_MODE_6 
CONFIGURE_CHANNEL_MODE_7 
CONFIGURE_CHANNEL_MODE_8 
CONFIGURE_CHANNEL_MODE_9 
CONFIGURE_CHANNEL_MODE_10 
CONFIGURE_CHANNEL_MODE_SCALED_OUTPUT 
CONFIGURE_CHANNEL_MODE_INPUT_PROCESSING 
CONFIGURE_CHANNEL_MODE_11 
CONFIGURE_CHANNEL_MODE_12 
CONFIGURE_CHANNEL_MODE_13 
CONFIGURE_CHANNEL_MODE_14 
CONFIGURE_CHANNEL_MODE_15 
CONFIGURE_CHANNEL_MODE_16 
CONFIGURE_CHANNEL_MODE_17 
CONFIGURE_CHANNEL_MODE_18 
CONFIGURE_CHANNEL_MODE_DISABLE 
CONFIGURE_CHANNEL_MODE_HW_0 
CONFIGURE_CHANNEL_MODE_HW_1 
CONFIGURE_CHANNEL_MODE_HW_2 
CONFIGURE_CHANNEL_MODE_HW_3