Synopsis
CTL_STATUS_t wii_extension_controller_read_memory(CTL_I2C_BUS_t *bus,
                                                  int mem_addr,
                                                  void *data,
                                                  int n);
Description

wii_extension_controller_read_memory reads the contents of a Wii extension controller on I2C bus bus. n bytes of memory are read from the controller starting at address mem_addr and written to the object pointed to by data.

Return Value

wii_extension_controller_read_memory returns a standard status code.

Thread Safety

wii_extension_controller_read_memory is thread-safe if a mutex is associated with the I2C bus bus.