LEGO Mindstorms EV3 |
Shared Memory
It is possible to get a pointer to the uart values for use in userspace this pointer will point to a struct and the layout is following:
*/ #define UART_DATA_LENGTH MAX_DEVICE_DATALENGTH #define UART_BUFFER_SIZE 64 typedef struct { TYPES TypeData[INPUTS][MAX_DEVICE_MODES]; //!< TypeData #ifndef DISABLE_FAST_DATALOG_BUFFER UWORD Repeat[INPUTS][DEVICE_LOGBUF_SIZE]; DATA8 Raw[INPUTS][DEVICE_LOGBUF_SIZE][UART_DATA_LENGTH]; //!< Raw value from UART device UWORD Actual[INPUTS]; UWORD LogIn[INPUTS]; #else DATA8 Raw[INPUTS][UART_DATA_LENGTH]; //!< Raw value from UART device #endif DATA8 Status[INPUTS]; //!< Status DATA8 Output[INPUTS][UART_DATA_LENGTH]; //!< Bytes to UART device DATA8 OutputLength[INPUTS]; } UART; /*
\n