LEGO Mindstorms EV3 |
Shared Memory
It is possible to get a pointer to the iic values for use in userspace this pointer will point to a struct and the layout is following:
*/ #define IIC_DATA_LENGTH MAX_DEVICE_DATALENGTH #define IIC_NAME_LENGTH 8 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][IIC_DATA_LENGTH]; //!< Raw value from IIC device UWORD Actual[INPUTS]; UWORD LogIn[INPUTS]; #else DATA8 Raw[INPUTS][IIC_DATA_LENGTH]; //!< Raw value from IIC device #endif DATA8 Status[INPUTS]; //!< Status DATA8 Changed[INPUTS]; DATA8 Output[INPUTS][IIC_DATA_LENGTH]; //!< Bytes to IIC device DATA8 OutputLength[INPUTS]; } IIC; /*
\n