CTL_STATUS_t mma7455l_initialize_spi(CTL_ACCELEROMETER_t *self,
                                     CTL_SPI_DEVICE_t *dev);

mma7455l_initialize_spi initializes the accelerometer interface self with methods to communicate with an MMA7455L accelerometer using the device dev.

Once the accelerometer interface is initialized, you can use all standard accelerometer methods from the sensor API on the interface.

Return Value

mma7455l_initialize_spi returns a standard status code.

Thread Safety

mma7455l_initialize_spi is thread-safe if a mutex is associated with the device dev.

See Also