Defines |
#define | argsSize 32 |
#define | ASEBA_ASSERT |
#define | CAM_BLUE(pixel) ( 3 * (((pixel) >> 8) & 0x1f)) |
#define | CAM_GREEN(pixel) ((3 * ((((pixel) & 0x7) << 3) | ((pixel) >> 13))) >> 1) |
#define | CAM_RED(pixel) ( 3 * (((pixel) >> 3) & 0x1f)) |
#define | CLAMP(v, vmin, vmax) ((v) < (vmin) ? (vmin) : (v) > (vmax) ? (vmax) : (v)) |
#define | CLEAR_EVENT(event) do {events_flags &= ~(1 << event);} while(0) |
#define | IS_EVENT(event) (events_flags & (1 << event)) |
#define | LIS_GROUND_SENSORS |
#define | SET_EVENT(event) do {events_flags |= 1 << event;} while(0) |
#define | VM_BYTECODE_SIZE 1024 |
#define | VM_STACK_SIZE 32 |
#define | vmStackSize 32 |
#define | vmVariablesSize (sizeof(struct EPuckVariables) / sizeof(sint16)) |
Enumerations |
enum | Events {
YOUR_FIRST_EVENT = 0,
YOUR_SECOND_EVENT,
EVENTS_COUNT,
EVENT_IR_SENSORS = 0,
EVENT_CAMERA,
EVENTS_COUNT
} |
Functions |
unsigned int | __attribute ((far)) |
| __attribute__ ((far)) |
void | AsebaAssert (AsebaVMState *vm, AsebaAssertReason reason) |
uint16 | AsebaGetBuffer (AsebaVMState *vm, uint8 *data, uint16 maxLength, uint16 *source) |
const AsebaLocalEventDescription * | AsebaGetLocalEventsDescriptions (AsebaVMState *vm) |
const
AsebaNativeFunctionDescription
*const * | AsebaGetNativeFunctionsDescriptions (AsebaVMState *vm) |
const AsebaVMDescription * | AsebaGetVMDescription (AsebaVMState *vm) |
void | AsebaNativeFunction (AsebaVMState *vm, uint16 id) |
void | AsebaPutVmToSleep (AsebaVMState *vm) |
void | AsebaResetIntoBootloader (AsebaVMState *vm) |
void | AsebaSendBuffer (AsebaVMState *vm, const uint8 *data, uint16 length) |
void | AsebaWriteBytecode (AsebaVMState *vm) |
void | EpuckNative_get_ground_values (AsebaVMState *vm) |
void | initAseba () |
void | initRobot () |
int | main () |
uint16 | uartGetUInt16 () |
uint8 | uartGetUInt8 () |
void | uartSendUInt16 (uint16 value) |
void | uartSendUInt8 (uint8 value) |
void | updateRobotVariables () |
Variables |
int | e_ambient_and_reflected_ir [8] |
AsebaNativeFunctionDescription | EpuckNativeDescription_get_ground_values |
static unsigned int | events_flags = 0 |
static const
AsebaLocalEventDescription | localEvents [] |
static AsebaNativeFunctionPointer | nativeFunctions [] |
static const
AsebaNativeFunctionDescription * | nativeFunctionsDescription [] |
static uint16 | vmBytecode [VM_BYTECODE_SIZE] |
static sint16 | vmStack [VM_STACK_SIZE] |
static AsebaVMState | vmState |