Constants and types common to all subsystems

Defines

#define ASEBA_BINARY_OPERATOR_MASK   0xff
#define ASEBA_BINARY_OPERATOR_MASK   0xff
#define ASEBA_DEFAULT_HOST   "localhost"
#define ASEBA_DEFAULT_HOST   "localhost"
#define ASEBA_DEFAULT_LISTEN_TARGET   "tcpin:33333"
#define ASEBA_DEFAULT_LISTEN_TARGET   "tcpin:33333"
#define ASEBA_DEFAULT_PORT   33333
#define ASEBA_DEFAULT_PORT   33333
#define ASEBA_DEFAULT_TARGET   "tcp:localhost;33333"
#define ASEBA_DEFAULT_TARGET   "tcp:localhost;33333"
#define ASEBA_IF_IS_WHEN_BIT   8
#define ASEBA_IF_IS_WHEN_BIT   8
#define ASEBA_IF_WAS_TRUE_BIT   9
#define ASEBA_IF_WAS_TRUE_BIT   9
#define ASEBA_MAX_EVENT_ARG_SIZE   ((ASEBA_MAX_PACKET_SIZE-6)/2)
#define ASEBA_MAX_EVENT_ARG_SIZE   ((ASEBA_MAX_PACKET_SIZE-6)/2)
#define ASEBA_PROTOCOL_VERSION   4
#define ASEBA_PROTOCOL_VERSION   4
#define ASEBA_UNARY_OPERATOR_MASK   0xff
#define ASEBA_UNARY_OPERATOR_MASK   0xff
#define AsebaBytecodeFromId(id)   ((id) << 12)
#define AsebaBytecodeFromId(id)   ((id) << 12)

Typedefs

typedef signed short sint16
 16 bits signed integer
typedef signed short sint16
 16 bits signed integer
typedef signed long sint32
 32 bits signed integer
typedef signed long sint32
 32 bits signed integer
typedef signed char sint8
 8 bits signed integer
typedef signed char sint8
 8 bits signed integer
typedef unsigned short uint16
 16 bits unsigned integer
typedef unsigned short uint16
 16 bits unsigned integer
typedef unsigned long uint32
 32 bits unsigned integer
typedef unsigned long uint32
 32 bits unsigned integer
typedef unsigned char uint8
 8 bits unsigned integer
typedef unsigned char uint8
 8 bits unsigned integer

Enumerations

enum  AsebaBinaryOperator {
  ASEBA_OP_SHIFT_LEFT = 0x0, ASEBA_OP_SHIFT_RIGHT, ASEBA_OP_ADD, ASEBA_OP_SUB,
  ASEBA_OP_MULT, ASEBA_OP_DIV, ASEBA_OP_MOD, ASEBA_OP_BIT_OR,
  ASEBA_OP_BIT_XOR, ASEBA_OP_BIT_AND, ASEBA_OP_EQUAL, ASEBA_OP_NOT_EQUAL,
  ASEBA_OP_BIGGER_THAN, ASEBA_OP_BIGGER_EQUAL_THAN, ASEBA_OP_SMALLER_THAN, ASEBA_OP_SMALLER_EQUAL_THAN,
  ASEBA_OP_OR, ASEBA_OP_AND, ASEBA_OP_SHIFT_LEFT = 0x0, ASEBA_OP_SHIFT_RIGHT,
  ASEBA_OP_ADD, ASEBA_OP_SUB, ASEBA_OP_MULT, ASEBA_OP_DIV,
  ASEBA_OP_MOD, ASEBA_OP_BIT_OR, ASEBA_OP_BIT_XOR, ASEBA_OP_BIT_AND,
  ASEBA_OP_EQUAL, ASEBA_OP_NOT_EQUAL, ASEBA_OP_BIGGER_THAN, ASEBA_OP_BIGGER_EQUAL_THAN,
  ASEBA_OP_SMALLER_THAN, ASEBA_OP_SMALLER_EQUAL_THAN, ASEBA_OP_OR, ASEBA_OP_AND
}
enum  AsebaBinaryOperator {
  ASEBA_OP_SHIFT_LEFT = 0x0, ASEBA_OP_SHIFT_RIGHT, ASEBA_OP_ADD, ASEBA_OP_SUB,
  ASEBA_OP_MULT, ASEBA_OP_DIV, ASEBA_OP_MOD, ASEBA_OP_BIT_OR,
  ASEBA_OP_BIT_XOR, ASEBA_OP_BIT_AND, ASEBA_OP_EQUAL, ASEBA_OP_NOT_EQUAL,
  ASEBA_OP_BIGGER_THAN, ASEBA_OP_BIGGER_EQUAL_THAN, ASEBA_OP_SMALLER_THAN, ASEBA_OP_SMALLER_EQUAL_THAN,
  ASEBA_OP_OR, ASEBA_OP_AND, ASEBA_OP_SHIFT_LEFT = 0x0, ASEBA_OP_SHIFT_RIGHT,
  ASEBA_OP_ADD, ASEBA_OP_SUB, ASEBA_OP_MULT, ASEBA_OP_DIV,
  ASEBA_OP_MOD, ASEBA_OP_BIT_OR, ASEBA_OP_BIT_XOR, ASEBA_OP_BIT_AND,
  ASEBA_OP_EQUAL, ASEBA_OP_NOT_EQUAL, ASEBA_OP_BIGGER_THAN, ASEBA_OP_BIGGER_EQUAL_THAN,
  ASEBA_OP_SMALLER_THAN, ASEBA_OP_SMALLER_EQUAL_THAN, ASEBA_OP_OR, ASEBA_OP_AND
}
enum  AsebaBytecodeId {
  ASEBA_BYTECODE_STOP = 0x0, ASEBA_BYTECODE_SMALL_IMMEDIATE = 0x1, ASEBA_BYTECODE_LARGE_IMMEDIATE = 0x2, ASEBA_BYTECODE_LOAD = 0x3,
  ASEBA_BYTECODE_STORE = 0x4, ASEBA_BYTECODE_LOAD_INDIRECT = 0x5, ASEBA_BYTECODE_STORE_INDIRECT = 0x6, ASEBA_BYTECODE_UNARY_ARITHMETIC = 0x7,
  ASEBA_BYTECODE_BINARY_ARITHMETIC = 0x8, ASEBA_BYTECODE_JUMP = 0x9, ASEBA_BYTECODE_CONDITIONAL_BRANCH = 0xA, ASEBA_BYTECODE_EMIT = 0xB,
  ASEBA_BYTECODE_NATIVE_CALL = 0xC, ASEBA_BYTECODE_SUB_CALL = 0xD, ASEBA_BYTECODE_SUB_RET = 0xE, ASEBA_BYTECODE_STOP = 0x0,
  ASEBA_BYTECODE_SMALL_IMMEDIATE = 0x1, ASEBA_BYTECODE_LARGE_IMMEDIATE = 0x2, ASEBA_BYTECODE_LOAD = 0x3, ASEBA_BYTECODE_STORE = 0x4,
  ASEBA_BYTECODE_LOAD_INDIRECT = 0x5, ASEBA_BYTECODE_STORE_INDIRECT = 0x6, ASEBA_BYTECODE_UNARY_ARITHMETIC = 0x7, ASEBA_BYTECODE_BINARY_ARITHMETIC = 0x8,
  ASEBA_BYTECODE_JUMP = 0x9, ASEBA_BYTECODE_CONDITIONAL_BRANCH = 0xA, ASEBA_BYTECODE_EMIT = 0xB, ASEBA_BYTECODE_NATIVE_CALL = 0xC,
  ASEBA_BYTECODE_SUB_CALL = 0xD, ASEBA_BYTECODE_SUB_RET = 0xE
}
enum  AsebaBytecodeId {
  ASEBA_BYTECODE_STOP = 0x0, ASEBA_BYTECODE_SMALL_IMMEDIATE = 0x1, ASEBA_BYTECODE_LARGE_IMMEDIATE = 0x2, ASEBA_BYTECODE_LOAD = 0x3,
  ASEBA_BYTECODE_STORE = 0x4, ASEBA_BYTECODE_LOAD_INDIRECT = 0x5, ASEBA_BYTECODE_STORE_INDIRECT = 0x6, ASEBA_BYTECODE_UNARY_ARITHMETIC = 0x7,
  ASEBA_BYTECODE_BINARY_ARITHMETIC = 0x8, ASEBA_BYTECODE_JUMP = 0x9, ASEBA_BYTECODE_CONDITIONAL_BRANCH = 0xA, ASEBA_BYTECODE_EMIT = 0xB,
  ASEBA_BYTECODE_NATIVE_CALL = 0xC, ASEBA_BYTECODE_SUB_CALL = 0xD, ASEBA_BYTECODE_SUB_RET = 0xE, ASEBA_BYTECODE_STOP = 0x0,
  ASEBA_BYTECODE_SMALL_IMMEDIATE = 0x1, ASEBA_BYTECODE_LARGE_IMMEDIATE = 0x2, ASEBA_BYTECODE_LOAD = 0x3, ASEBA_BYTECODE_STORE = 0x4,
  ASEBA_BYTECODE_LOAD_INDIRECT = 0x5, ASEBA_BYTECODE_STORE_INDIRECT = 0x6, ASEBA_BYTECODE_UNARY_ARITHMETIC = 0x7, ASEBA_BYTECODE_BINARY_ARITHMETIC = 0x8,
  ASEBA_BYTECODE_JUMP = 0x9, ASEBA_BYTECODE_CONDITIONAL_BRANCH = 0xA, ASEBA_BYTECODE_EMIT = 0xB, ASEBA_BYTECODE_NATIVE_CALL = 0xC,
  ASEBA_BYTECODE_SUB_CALL = 0xD, ASEBA_BYTECODE_SUB_RET = 0xE
}
enum  AsebaExecutionStates {
  ASEBA_VM_EVENT_ACTIVE_MASK = 0x1, ASEBA_VM_STEP_BY_STEP_MASK = 0x2, ASEBA_VM_EVENT_RUNNING_MASK = 0x4, ASEBA_VM_EVENT_ACTIVE_MASK = 0x1,
  ASEBA_VM_STEP_BY_STEP_MASK = 0x2, ASEBA_VM_EVENT_RUNNING_MASK = 0x4
}
enum  AsebaExecutionStates {
  ASEBA_VM_EVENT_ACTIVE_MASK = 0x1, ASEBA_VM_STEP_BY_STEP_MASK = 0x2, ASEBA_VM_EVENT_RUNNING_MASK = 0x4, ASEBA_VM_EVENT_ACTIVE_MASK = 0x1,
  ASEBA_VM_STEP_BY_STEP_MASK = 0x2, ASEBA_VM_EVENT_RUNNING_MASK = 0x4
}
enum  AsebaLimits { ASEBA_MAX_PACKET_SIZE = 512+6, ASEBA_MAX_PACKET_SIZE = 512+6 }
enum  AsebaLimits { ASEBA_MAX_PACKET_SIZE = 512+6, ASEBA_MAX_PACKET_SIZE = 512+6 }
enum  AsebaMessagesDests { ASEBA_DEST_DEBUG = 0, ASEBA_DEST_INVALID = 0xFFFF, ASEBA_DEST_DEBUG = 0, ASEBA_DEST_INVALID = 0xFFFF }
enum  AsebaMessagesDests { ASEBA_DEST_DEBUG = 0, ASEBA_DEST_INVALID = 0xFFFF, ASEBA_DEST_DEBUG = 0, ASEBA_DEST_INVALID = 0xFFFF }
enum  AsebaSpecialEventId { ASEBA_EVENT_INIT = 0xFFFF, ASEBA_EVENT_LOCAL_EVENTS_START = 0xFFFE, ASEBA_EVENT_INIT = 0xFFFF, ASEBA_EVENT_LOCAL_EVENTS_START = 0xFFFE }
enum  AsebaSpecialEventId { ASEBA_EVENT_INIT = 0xFFFF, ASEBA_EVENT_LOCAL_EVENTS_START = 0xFFFE, ASEBA_EVENT_INIT = 0xFFFF, ASEBA_EVENT_LOCAL_EVENTS_START = 0xFFFE }
enum  AsebaSystemMessagesTypes {
  ASEBA_MESSAGE_BOOTLOADER_RESET = 0x8000, ASEBA_MESSAGE_BOOTLOADER_READ_PAGE, ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE,
  ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ, ASEBA_MESSAGE_BOOTLOADER_ACK, ASEBA_MESSAGE_DESCRIPTION = 0x9000,
  ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION, ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION, ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION, ASEBA_MESSAGE_DISCONNECTED,
  ASEBA_MESSAGE_VARIABLES, ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS, ASEBA_MESSAGE_DIVISION_BY_ZERO, ASEBA_MESSAGE_EVENT_EXECUTION_KILLED,
  ASEBA_MESSAGE_NODE_SPECIFIC_ERROR, ASEBA_MESSAGE_EXECUTION_STATE_CHANGED, ASEBA_MESSAGE_BREAKPOINT_SET_RESULT, ASEBA_MESSAGE_GET_DESCRIPTION = 0xA000,
  ASEBA_MESSAGE_SET_BYTECODE, ASEBA_MESSAGE_RESET, ASEBA_MESSAGE_RUN, ASEBA_MESSAGE_PAUSE,
  ASEBA_MESSAGE_STEP, ASEBA_MESSAGE_STOP, ASEBA_MESSAGE_GET_EXECUTION_STATE, ASEBA_MESSAGE_BREAKPOINT_SET,
  ASEBA_MESSAGE_BREAKPOINT_CLEAR, ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL, ASEBA_MESSAGE_GET_VARIABLES, ASEBA_MESSAGE_SET_VARIABLES,
  ASEBA_MESSAGE_WRITE_BYTECODE, ASEBA_MESSAGE_REBOOT, ASEBA_MESSAGE_SUSPEND_TO_RAM, ASEBA_MESSAGE_INVALID = 0xFFFF,
  ASEBA_MESSAGE_BOOTLOADER_RESET = 0x8000, ASEBA_MESSAGE_BOOTLOADER_READ_PAGE, ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE,
  ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ, ASEBA_MESSAGE_BOOTLOADER_ACK, ASEBA_MESSAGE_DESCRIPTION = 0x9000,
  ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION, ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION, ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION, ASEBA_MESSAGE_DISCONNECTED,
  ASEBA_MESSAGE_VARIABLES, ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS, ASEBA_MESSAGE_DIVISION_BY_ZERO, ASEBA_MESSAGE_EVENT_EXECUTION_KILLED,
  ASEBA_MESSAGE_NODE_SPECIFIC_ERROR, ASEBA_MESSAGE_EXECUTION_STATE_CHANGED, ASEBA_MESSAGE_BREAKPOINT_SET_RESULT, ASEBA_MESSAGE_GET_DESCRIPTION = 0xA000,
  ASEBA_MESSAGE_SET_BYTECODE, ASEBA_MESSAGE_RESET, ASEBA_MESSAGE_RUN, ASEBA_MESSAGE_PAUSE,
  ASEBA_MESSAGE_STEP, ASEBA_MESSAGE_STOP, ASEBA_MESSAGE_GET_EXECUTION_STATE, ASEBA_MESSAGE_BREAKPOINT_SET,
  ASEBA_MESSAGE_BREAKPOINT_CLEAR, ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL, ASEBA_MESSAGE_GET_VARIABLES, ASEBA_MESSAGE_SET_VARIABLES,
  ASEBA_MESSAGE_WRITE_BYTECODE, ASEBA_MESSAGE_REBOOT, ASEBA_MESSAGE_SUSPEND_TO_RAM, ASEBA_MESSAGE_INVALID = 0xFFFF
}
enum  AsebaSystemMessagesTypes {
  ASEBA_MESSAGE_BOOTLOADER_RESET = 0x8000, ASEBA_MESSAGE_BOOTLOADER_READ_PAGE, ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE,
  ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ, ASEBA_MESSAGE_BOOTLOADER_ACK, ASEBA_MESSAGE_DESCRIPTION = 0x9000,
  ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION, ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION, ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION, ASEBA_MESSAGE_DISCONNECTED,
  ASEBA_MESSAGE_VARIABLES, ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS, ASEBA_MESSAGE_DIVISION_BY_ZERO, ASEBA_MESSAGE_EVENT_EXECUTION_KILLED,
  ASEBA_MESSAGE_NODE_SPECIFIC_ERROR, ASEBA_MESSAGE_EXECUTION_STATE_CHANGED, ASEBA_MESSAGE_BREAKPOINT_SET_RESULT, ASEBA_MESSAGE_GET_DESCRIPTION = 0xA000,
  ASEBA_MESSAGE_SET_BYTECODE, ASEBA_MESSAGE_RESET, ASEBA_MESSAGE_RUN, ASEBA_MESSAGE_PAUSE,
  ASEBA_MESSAGE_STEP, ASEBA_MESSAGE_STOP, ASEBA_MESSAGE_GET_EXECUTION_STATE, ASEBA_MESSAGE_BREAKPOINT_SET,
  ASEBA_MESSAGE_BREAKPOINT_CLEAR, ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL, ASEBA_MESSAGE_GET_VARIABLES, ASEBA_MESSAGE_SET_VARIABLES,
  ASEBA_MESSAGE_WRITE_BYTECODE, ASEBA_MESSAGE_REBOOT, ASEBA_MESSAGE_SUSPEND_TO_RAM, ASEBA_MESSAGE_INVALID = 0xFFFF,
  ASEBA_MESSAGE_BOOTLOADER_RESET = 0x8000, ASEBA_MESSAGE_BOOTLOADER_READ_PAGE, ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE,
  ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION, ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ, ASEBA_MESSAGE_BOOTLOADER_ACK, ASEBA_MESSAGE_DESCRIPTION = 0x9000,
  ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION, ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION, ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION, ASEBA_MESSAGE_DISCONNECTED,
  ASEBA_MESSAGE_VARIABLES, ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS, ASEBA_MESSAGE_DIVISION_BY_ZERO, ASEBA_MESSAGE_EVENT_EXECUTION_KILLED,
  ASEBA_MESSAGE_NODE_SPECIFIC_ERROR, ASEBA_MESSAGE_EXECUTION_STATE_CHANGED, ASEBA_MESSAGE_BREAKPOINT_SET_RESULT, ASEBA_MESSAGE_GET_DESCRIPTION = 0xA000,
  ASEBA_MESSAGE_SET_BYTECODE, ASEBA_MESSAGE_RESET, ASEBA_MESSAGE_RUN, ASEBA_MESSAGE_PAUSE,
  ASEBA_MESSAGE_STEP, ASEBA_MESSAGE_STOP, ASEBA_MESSAGE_GET_EXECUTION_STATE, ASEBA_MESSAGE_BREAKPOINT_SET,
  ASEBA_MESSAGE_BREAKPOINT_CLEAR, ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL, ASEBA_MESSAGE_GET_VARIABLES, ASEBA_MESSAGE_SET_VARIABLES,
  ASEBA_MESSAGE_WRITE_BYTECODE, ASEBA_MESSAGE_REBOOT, ASEBA_MESSAGE_SUSPEND_TO_RAM, ASEBA_MESSAGE_INVALID = 0xFFFF
}
enum  AsebaUnaryOperator {
  ASEBA_UNARY_OP_SUB = 0x0, ASEBA_UNARY_OP_ABS, ASEBA_UNARY_OP_BIT_NOT, ASEBA_UNARY_OP_NOT,
  ASEBA_UNARY_OP_SUB = 0x0, ASEBA_UNARY_OP_ABS, ASEBA_UNARY_OP_BIT_NOT, ASEBA_UNARY_OP_NOT
}
enum  AsebaUnaryOperator {
  ASEBA_UNARY_OP_SUB = 0x0, ASEBA_UNARY_OP_ABS, ASEBA_UNARY_OP_BIT_NOT, ASEBA_UNARY_OP_NOT,
  ASEBA_UNARY_OP_SUB = 0x0, ASEBA_UNARY_OP_ABS, ASEBA_UNARY_OP_BIT_NOT, ASEBA_UNARY_OP_NOT
}

Detailed Description


Define Documentation

#define ASEBA_BINARY_OPERATOR_MASK   0xff

Mask of available binary operators

Definition at line 96 of file consts.h.

#define ASEBA_BINARY_OPERATOR_MASK   0xff

Mask of available binary operators

Definition at line 96 of file consts.h.

#define ASEBA_DEFAULT_HOST   "localhost"

default host for aseba

Definition at line 42 of file consts.h.

#define ASEBA_DEFAULT_HOST   "localhost"

default host for aseba

Definition at line 42 of file consts.h.

#define ASEBA_DEFAULT_LISTEN_TARGET   "tcpin:33333"

default listen target for aseba

Definition at line 36 of file consts.h.

#define ASEBA_DEFAULT_LISTEN_TARGET   "tcpin:33333"

default listen target for aseba

Definition at line 36 of file consts.h.

#define ASEBA_DEFAULT_PORT   33333

default port for aseba

Definition at line 45 of file consts.h.

#define ASEBA_DEFAULT_PORT   33333

default port for aseba

Definition at line 45 of file consts.h.

#define ASEBA_DEFAULT_TARGET   "tcp:localhost;33333"

default target for aseba

Definition at line 39 of file consts.h.

#define ASEBA_DEFAULT_TARGET   "tcp:localhost;33333"

default target for aseba

Definition at line 39 of file consts.h.

#define ASEBA_IF_IS_WHEN_BIT   8

Bit inside if opcode that indicates it is a when condition

Definition at line 111 of file consts.h.

#define ASEBA_IF_IS_WHEN_BIT   8

Bit inside if opcode that indicates it is a when condition

Definition at line 111 of file consts.h.

#define ASEBA_IF_WAS_TRUE_BIT   9

Bit inside if opcode that indicates that the last evaluation was true

Definition at line 113 of file consts.h.

#define ASEBA_IF_WAS_TRUE_BIT   9

Bit inside if opcode that indicates that the last evaluation was true

Definition at line 113 of file consts.h.

#define ASEBA_MAX_EVENT_ARG_SIZE   ((ASEBA_MAX_PACKET_SIZE-6)/2)

Maximum number of word in a aseba user message

Definition at line 201 of file consts.h.

#define ASEBA_MAX_EVENT_ARG_SIZE   ((ASEBA_MAX_PACKET_SIZE-6)/2)

Maximum number of word in a aseba user message

Definition at line 201 of file consts.h.

#define ASEBA_PROTOCOL_VERSION   4

version of aseba protocol, including bytecodes types and constants

Definition at line 33 of file consts.h.

#define ASEBA_PROTOCOL_VERSION   4

version of aseba protocol, including bytecodes types and constants

Definition at line 33 of file consts.h.

#define ASEBA_UNARY_OPERATOR_MASK   0xff

Mask of available unary operators

Definition at line 108 of file consts.h.

#define ASEBA_UNARY_OPERATOR_MASK   0xff

Mask of available unary operators

Definition at line 108 of file consts.h.

#define AsebaBytecodeFromId ( id   )     ((id) << 12)

Return a bare bytecode from its identifier

Definition at line 134 of file consts.h.

#define AsebaBytecodeFromId ( id   )     ((id) << 12)

Return a bare bytecode from its identifier

Definition at line 134 of file consts.h.


Typedef Documentation

typedef signed short sint16

16 bits signed integer

Definition at line 36 of file types.h.

typedef signed short sint16

16 bits signed integer

Definition at line 36 of file types.h.

typedef signed long sint32

32 bits signed integer

Definition at line 34 of file types.h.

typedef signed long sint32

32 bits signed integer

Definition at line 34 of file types.h.

typedef signed char sint8

8 bits signed integer

Definition at line 38 of file types.h.

typedef signed char sint8

8 bits signed integer

Definition at line 38 of file types.h.

typedef unsigned short uint16

16 bits unsigned integer

Definition at line 37 of file types.h.

typedef unsigned short uint16

16 bits unsigned integer

Definition at line 37 of file types.h.

typedef unsigned long uint32

32 bits unsigned integer

Definition at line 35 of file types.h.

typedef unsigned long uint32

32 bits unsigned integer

Definition at line 35 of file types.h.

typedef unsigned char uint8

8 bits unsigned integer

Definition at line 39 of file types.h.

typedef unsigned char uint8

8 bits unsigned integer

Definition at line 39 of file types.h.


Enumeration Type Documentation

List of binary operators

Enumerator:
ASEBA_OP_SHIFT_LEFT 
ASEBA_OP_SHIFT_RIGHT 
ASEBA_OP_ADD 
ASEBA_OP_SUB 
ASEBA_OP_MULT 
ASEBA_OP_DIV 
ASEBA_OP_MOD 
ASEBA_OP_BIT_OR 
ASEBA_OP_BIT_XOR 
ASEBA_OP_BIT_AND 
ASEBA_OP_EQUAL 
ASEBA_OP_NOT_EQUAL 
ASEBA_OP_BIGGER_THAN 
ASEBA_OP_BIGGER_EQUAL_THAN 
ASEBA_OP_SMALLER_THAN 
ASEBA_OP_SMALLER_EQUAL_THAN 
ASEBA_OP_OR 
ASEBA_OP_AND 
ASEBA_OP_SHIFT_LEFT 
ASEBA_OP_SHIFT_RIGHT 
ASEBA_OP_ADD 
ASEBA_OP_SUB 
ASEBA_OP_MULT 
ASEBA_OP_DIV 
ASEBA_OP_MOD 
ASEBA_OP_BIT_OR 
ASEBA_OP_BIT_XOR 
ASEBA_OP_BIT_AND 
ASEBA_OP_EQUAL 
ASEBA_OP_NOT_EQUAL 
ASEBA_OP_BIGGER_THAN 
ASEBA_OP_BIGGER_EQUAL_THAN 
ASEBA_OP_SMALLER_THAN 
ASEBA_OP_SMALLER_EQUAL_THAN 
ASEBA_OP_OR 
ASEBA_OP_AND 

Definition at line 69 of file consts.h.

List of binary operators

Enumerator:
ASEBA_OP_SHIFT_LEFT 
ASEBA_OP_SHIFT_RIGHT 
ASEBA_OP_ADD 
ASEBA_OP_SUB 
ASEBA_OP_MULT 
ASEBA_OP_DIV 
ASEBA_OP_MOD 
ASEBA_OP_BIT_OR 
ASEBA_OP_BIT_XOR 
ASEBA_OP_BIT_AND 
ASEBA_OP_EQUAL 
ASEBA_OP_NOT_EQUAL 
ASEBA_OP_BIGGER_THAN 
ASEBA_OP_BIGGER_EQUAL_THAN 
ASEBA_OP_SMALLER_THAN 
ASEBA_OP_SMALLER_EQUAL_THAN 
ASEBA_OP_OR 
ASEBA_OP_AND 
ASEBA_OP_SHIFT_LEFT 
ASEBA_OP_SHIFT_RIGHT 
ASEBA_OP_ADD 
ASEBA_OP_SUB 
ASEBA_OP_MULT 
ASEBA_OP_DIV 
ASEBA_OP_MOD 
ASEBA_OP_BIT_OR 
ASEBA_OP_BIT_XOR 
ASEBA_OP_BIT_AND 
ASEBA_OP_EQUAL 
ASEBA_OP_NOT_EQUAL 
ASEBA_OP_BIGGER_THAN 
ASEBA_OP_BIGGER_EQUAL_THAN 
ASEBA_OP_SMALLER_THAN 
ASEBA_OP_SMALLER_EQUAL_THAN 
ASEBA_OP_OR 
ASEBA_OP_AND 

Definition at line 69 of file consts.h.

List of bytecodes identifiers

Enumerator:
ASEBA_BYTECODE_STOP 
ASEBA_BYTECODE_SMALL_IMMEDIATE 
ASEBA_BYTECODE_LARGE_IMMEDIATE 
ASEBA_BYTECODE_LOAD 
ASEBA_BYTECODE_STORE 
ASEBA_BYTECODE_LOAD_INDIRECT 
ASEBA_BYTECODE_STORE_INDIRECT 
ASEBA_BYTECODE_UNARY_ARITHMETIC 
ASEBA_BYTECODE_BINARY_ARITHMETIC 
ASEBA_BYTECODE_JUMP 
ASEBA_BYTECODE_CONDITIONAL_BRANCH 
ASEBA_BYTECODE_EMIT 
ASEBA_BYTECODE_NATIVE_CALL 
ASEBA_BYTECODE_SUB_CALL 
ASEBA_BYTECODE_SUB_RET 
ASEBA_BYTECODE_STOP 
ASEBA_BYTECODE_SMALL_IMMEDIATE 
ASEBA_BYTECODE_LARGE_IMMEDIATE 
ASEBA_BYTECODE_LOAD 
ASEBA_BYTECODE_STORE 
ASEBA_BYTECODE_LOAD_INDIRECT 
ASEBA_BYTECODE_STORE_INDIRECT 
ASEBA_BYTECODE_UNARY_ARITHMETIC 
ASEBA_BYTECODE_BINARY_ARITHMETIC 
ASEBA_BYTECODE_JUMP 
ASEBA_BYTECODE_CONDITIONAL_BRANCH 
ASEBA_BYTECODE_EMIT 
ASEBA_BYTECODE_NATIVE_CALL 
ASEBA_BYTECODE_SUB_CALL 
ASEBA_BYTECODE_SUB_RET 

Definition at line 49 of file consts.h.

List of bytecodes identifiers

Enumerator:
ASEBA_BYTECODE_STOP 
ASEBA_BYTECODE_SMALL_IMMEDIATE 
ASEBA_BYTECODE_LARGE_IMMEDIATE 
ASEBA_BYTECODE_LOAD 
ASEBA_BYTECODE_STORE 
ASEBA_BYTECODE_LOAD_INDIRECT 
ASEBA_BYTECODE_STORE_INDIRECT 
ASEBA_BYTECODE_UNARY_ARITHMETIC 
ASEBA_BYTECODE_BINARY_ARITHMETIC 
ASEBA_BYTECODE_JUMP 
ASEBA_BYTECODE_CONDITIONAL_BRANCH 
ASEBA_BYTECODE_EMIT 
ASEBA_BYTECODE_NATIVE_CALL 
ASEBA_BYTECODE_SUB_CALL 
ASEBA_BYTECODE_SUB_RET 
ASEBA_BYTECODE_STOP 
ASEBA_BYTECODE_SMALL_IMMEDIATE 
ASEBA_BYTECODE_LARGE_IMMEDIATE 
ASEBA_BYTECODE_LOAD 
ASEBA_BYTECODE_STORE 
ASEBA_BYTECODE_LOAD_INDIRECT 
ASEBA_BYTECODE_STORE_INDIRECT 
ASEBA_BYTECODE_UNARY_ARITHMETIC 
ASEBA_BYTECODE_BINARY_ARITHMETIC 
ASEBA_BYTECODE_JUMP 
ASEBA_BYTECODE_CONDITIONAL_BRANCH 
ASEBA_BYTECODE_EMIT 
ASEBA_BYTECODE_NATIVE_CALL 
ASEBA_BYTECODE_SUB_CALL 
ASEBA_BYTECODE_SUB_RET 

Definition at line 49 of file consts.h.

List of masks for flags in AsebaVMState

Enumerator:
ASEBA_VM_EVENT_ACTIVE_MASK 

This flag is enabled when a thread is being executed.

ASEBA_VM_STEP_BY_STEP_MASK 

This flag is enabled when the VM is running stey by step. It is disabled when running normally.

ASEBA_VM_EVENT_RUNNING_MASK 

This flag is enabled when an event is running inside the debugger's fast loop, and cleared to make the debugger get out of the loop. This is usefull to allow an interrupt to stop the VM.

ASEBA_VM_EVENT_ACTIVE_MASK 

This flag is enabled when a thread is being executed.

ASEBA_VM_STEP_BY_STEP_MASK 

This flag is enabled when the VM is running stey by step. It is disabled when running normally.

ASEBA_VM_EVENT_RUNNING_MASK 

This flag is enabled when an event is running inside the debugger's fast loop, and cleared to make the debugger get out of the loop. This is usefull to allow an interrupt to stop the VM.

Definition at line 116 of file consts.h.

List of masks for flags in AsebaVMState

Enumerator:
ASEBA_VM_EVENT_ACTIVE_MASK 

This flag is enabled when a thread is being executed.

ASEBA_VM_STEP_BY_STEP_MASK 

This flag is enabled when the VM is running stey by step. It is disabled when running normally.

ASEBA_VM_EVENT_RUNNING_MASK 

This flag is enabled when an event is running inside the debugger's fast loop, and cleared to make the debugger get out of the loop. This is usefull to allow an interrupt to stop the VM.

ASEBA_VM_EVENT_ACTIVE_MASK 

This flag is enabled when a thread is being executed.

ASEBA_VM_STEP_BY_STEP_MASK 

This flag is enabled when the VM is running stey by step. It is disabled when running normally.

ASEBA_VM_EVENT_RUNNING_MASK 

This flag is enabled when an event is running inside the debugger's fast loop, and cleared to make the debugger get out of the loop. This is usefull to allow an interrupt to stop the VM.

Definition at line 116 of file consts.h.

Limits for static buffers allocation

Enumerator:
ASEBA_MAX_PACKET_SIZE 

maximum size an aseba packet is allowed to be (in byte), including all its aseba headers, but not the source and the length

ASEBA_MAX_PACKET_SIZE 

maximum size an aseba packet is allowed to be (in byte), including all its aseba headers, but not the source and the length

Definition at line 195 of file consts.h.

Limits for static buffers allocation

Enumerator:
ASEBA_MAX_PACKET_SIZE 

maximum size an aseba packet is allowed to be (in byte), including all its aseba headers, but not the source and the length

ASEBA_MAX_PACKET_SIZE 

maximum size an aseba packet is allowed to be (in byte), including all its aseba headers, but not the source and the length

Definition at line 195 of file consts.h.

Identifiers for destinations

Enumerator:
ASEBA_DEST_DEBUG 
ASEBA_DEST_INVALID 
ASEBA_DEST_DEBUG 
ASEBA_DEST_INVALID 

Definition at line 188 of file consts.h.

Identifiers for destinations

Enumerator:
ASEBA_DEST_DEBUG 
ASEBA_DEST_INVALID 
ASEBA_DEST_DEBUG 
ASEBA_DEST_INVALID 

Definition at line 188 of file consts.h.

List of special event ID

Enumerator:
ASEBA_EVENT_INIT 
ASEBA_EVENT_LOCAL_EVENTS_START 
ASEBA_EVENT_INIT 
ASEBA_EVENT_LOCAL_EVENTS_START 

Definition at line 127 of file consts.h.

List of special event ID

Enumerator:
ASEBA_EVENT_INIT 
ASEBA_EVENT_LOCAL_EVENTS_START 
ASEBA_EVENT_INIT 
ASEBA_EVENT_LOCAL_EVENTS_START 

Definition at line 127 of file consts.h.

Identifiers for remote bootloader and debug protocol

Enumerator:
ASEBA_MESSAGE_BOOTLOADER_RESET 
ASEBA_MESSAGE_BOOTLOADER_READ_PAGE 
ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE 
ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ 
ASEBA_MESSAGE_BOOTLOADER_ACK 
ASEBA_MESSAGE_DESCRIPTION 
ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION 
ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION 
ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION 
ASEBA_MESSAGE_DISCONNECTED 
ASEBA_MESSAGE_VARIABLES 
ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS 
ASEBA_MESSAGE_DIVISION_BY_ZERO 
ASEBA_MESSAGE_EVENT_EXECUTION_KILLED 
ASEBA_MESSAGE_NODE_SPECIFIC_ERROR 
ASEBA_MESSAGE_EXECUTION_STATE_CHANGED 
ASEBA_MESSAGE_BREAKPOINT_SET_RESULT 
ASEBA_MESSAGE_GET_DESCRIPTION 
ASEBA_MESSAGE_SET_BYTECODE 
ASEBA_MESSAGE_RESET 
ASEBA_MESSAGE_RUN 
ASEBA_MESSAGE_PAUSE 
ASEBA_MESSAGE_STEP 
ASEBA_MESSAGE_STOP 
ASEBA_MESSAGE_GET_EXECUTION_STATE 
ASEBA_MESSAGE_BREAKPOINT_SET 
ASEBA_MESSAGE_BREAKPOINT_CLEAR 
ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL 
ASEBA_MESSAGE_GET_VARIABLES 
ASEBA_MESSAGE_SET_VARIABLES 
ASEBA_MESSAGE_WRITE_BYTECODE 
ASEBA_MESSAGE_REBOOT 
ASEBA_MESSAGE_SUSPEND_TO_RAM 
ASEBA_MESSAGE_INVALID 
ASEBA_MESSAGE_BOOTLOADER_RESET 
ASEBA_MESSAGE_BOOTLOADER_READ_PAGE 
ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE 
ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ 
ASEBA_MESSAGE_BOOTLOADER_ACK 
ASEBA_MESSAGE_DESCRIPTION 
ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION 
ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION 
ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION 
ASEBA_MESSAGE_DISCONNECTED 
ASEBA_MESSAGE_VARIABLES 
ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS 
ASEBA_MESSAGE_DIVISION_BY_ZERO 
ASEBA_MESSAGE_EVENT_EXECUTION_KILLED 
ASEBA_MESSAGE_NODE_SPECIFIC_ERROR 
ASEBA_MESSAGE_EXECUTION_STATE_CHANGED 
ASEBA_MESSAGE_BREAKPOINT_SET_RESULT 
ASEBA_MESSAGE_GET_DESCRIPTION 
ASEBA_MESSAGE_SET_BYTECODE 
ASEBA_MESSAGE_RESET 
ASEBA_MESSAGE_RUN 
ASEBA_MESSAGE_PAUSE 
ASEBA_MESSAGE_STEP 
ASEBA_MESSAGE_STOP 
ASEBA_MESSAGE_GET_EXECUTION_STATE 
ASEBA_MESSAGE_BREAKPOINT_SET 
ASEBA_MESSAGE_BREAKPOINT_CLEAR 
ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL 
ASEBA_MESSAGE_GET_VARIABLES 
ASEBA_MESSAGE_SET_VARIABLES 
ASEBA_MESSAGE_WRITE_BYTECODE 
ASEBA_MESSAGE_REBOOT 
ASEBA_MESSAGE_SUSPEND_TO_RAM 
ASEBA_MESSAGE_INVALID 

Definition at line 137 of file consts.h.

Identifiers for remote bootloader and debug protocol

Enumerator:
ASEBA_MESSAGE_BOOTLOADER_RESET 
ASEBA_MESSAGE_BOOTLOADER_READ_PAGE 
ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE 
ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ 
ASEBA_MESSAGE_BOOTLOADER_ACK 
ASEBA_MESSAGE_DESCRIPTION 
ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION 
ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION 
ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION 
ASEBA_MESSAGE_DISCONNECTED 
ASEBA_MESSAGE_VARIABLES 
ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS 
ASEBA_MESSAGE_DIVISION_BY_ZERO 
ASEBA_MESSAGE_EVENT_EXECUTION_KILLED 
ASEBA_MESSAGE_NODE_SPECIFIC_ERROR 
ASEBA_MESSAGE_EXECUTION_STATE_CHANGED 
ASEBA_MESSAGE_BREAKPOINT_SET_RESULT 
ASEBA_MESSAGE_GET_DESCRIPTION 
ASEBA_MESSAGE_SET_BYTECODE 
ASEBA_MESSAGE_RESET 
ASEBA_MESSAGE_RUN 
ASEBA_MESSAGE_PAUSE 
ASEBA_MESSAGE_STEP 
ASEBA_MESSAGE_STOP 
ASEBA_MESSAGE_GET_EXECUTION_STATE 
ASEBA_MESSAGE_BREAKPOINT_SET 
ASEBA_MESSAGE_BREAKPOINT_CLEAR 
ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL 
ASEBA_MESSAGE_GET_VARIABLES 
ASEBA_MESSAGE_SET_VARIABLES 
ASEBA_MESSAGE_WRITE_BYTECODE 
ASEBA_MESSAGE_REBOOT 
ASEBA_MESSAGE_SUSPEND_TO_RAM 
ASEBA_MESSAGE_INVALID 
ASEBA_MESSAGE_BOOTLOADER_RESET 
ASEBA_MESSAGE_BOOTLOADER_READ_PAGE 
ASEBA_MESSAGE_BOOTLOADER_WRITE_PAGE 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_WRITE 
ASEBA_MESSAGE_BOOTLOADER_DESCRIPTION 
ASEBA_MESSAGE_BOOTLOADER_PAGE_DATA_READ 
ASEBA_MESSAGE_BOOTLOADER_ACK 
ASEBA_MESSAGE_DESCRIPTION 
ASEBA_MESSAGE_NAMED_VARIABLE_DESCRIPTION 
ASEBA_MESSAGE_LOCAL_EVENT_DESCRIPTION 
ASEBA_MESSAGE_NATIVE_FUNCTION_DESCRIPTION 
ASEBA_MESSAGE_DISCONNECTED 
ASEBA_MESSAGE_VARIABLES 
ASEBA_MESSAGE_ARRAY_ACCESS_OUT_OF_BOUNDS 
ASEBA_MESSAGE_DIVISION_BY_ZERO 
ASEBA_MESSAGE_EVENT_EXECUTION_KILLED 
ASEBA_MESSAGE_NODE_SPECIFIC_ERROR 
ASEBA_MESSAGE_EXECUTION_STATE_CHANGED 
ASEBA_MESSAGE_BREAKPOINT_SET_RESULT 
ASEBA_MESSAGE_GET_DESCRIPTION 
ASEBA_MESSAGE_SET_BYTECODE 
ASEBA_MESSAGE_RESET 
ASEBA_MESSAGE_RUN 
ASEBA_MESSAGE_PAUSE 
ASEBA_MESSAGE_STEP 
ASEBA_MESSAGE_STOP 
ASEBA_MESSAGE_GET_EXECUTION_STATE 
ASEBA_MESSAGE_BREAKPOINT_SET 
ASEBA_MESSAGE_BREAKPOINT_CLEAR 
ASEBA_MESSAGE_BREAKPOINT_CLEAR_ALL 
ASEBA_MESSAGE_GET_VARIABLES 
ASEBA_MESSAGE_SET_VARIABLES 
ASEBA_MESSAGE_WRITE_BYTECODE 
ASEBA_MESSAGE_REBOOT 
ASEBA_MESSAGE_SUSPEND_TO_RAM 
ASEBA_MESSAGE_INVALID 

Definition at line 137 of file consts.h.

List of unary operators

Enumerator:
ASEBA_UNARY_OP_SUB 
ASEBA_UNARY_OP_ABS 
ASEBA_UNARY_OP_BIT_NOT 
ASEBA_UNARY_OP_NOT 
ASEBA_UNARY_OP_SUB 
ASEBA_UNARY_OP_ABS 
ASEBA_UNARY_OP_BIT_NOT 
ASEBA_UNARY_OP_NOT 

Definition at line 99 of file consts.h.

List of unary operators

Enumerator:
ASEBA_UNARY_OP_SUB 
ASEBA_UNARY_OP_ABS 
ASEBA_UNARY_OP_BIT_NOT 
ASEBA_UNARY_OP_NOT 
ASEBA_UNARY_OP_SUB 
ASEBA_UNARY_OP_ABS 
ASEBA_UNARY_OP_BIT_NOT 
ASEBA_UNARY_OP_NOT 

Definition at line 99 of file consts.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:05 2011