I am trying to make the on board inertial sensor and I2C to communicate and blink LEDS based on xyz directions as RGB on a FRDM-KE02Z40M board. I didnot have a driver for the on board inertial sensor MMA8451Q on the IDE KDSV3.0 and PE and so I used the driver code for the sensor from the source link below.
The errors that I am getting is with regard to the definition of the struct on the device driver. (screenshot attached)
I am not sure why the object MMA8451_TDatastate is not being created or errors are thrown. Syntactically this looks okay to me. Any thoughts or suggestions are welcome. Thanks!
P.S.I have not used the GPIO_LDD component as mentioned in the link. I am not sure what its use case is.