SIM_INTERFACE(serial_peripheral_interface_master) { void (*spi_response)(conf_object_t *obj, int bits, dbuffer_t *payload); }; #define SERIAL_PERIPHERAL_INTERFACE_MASTER_INTERFACE \ "serial_peripheral_interface_master"
The serial_peripheral_interface_master
interface is
implemented by all SPI master devices. The interface contains a
single function spi_response, called by the slave device
in response to a spi_request call. The parameters
bits and payload have the same
meaning as in the spi_request call, and a SPI response
should always have the same length in bits as the corresponding request.
serial_peripheral_interface_slave_interface_t