serial_device serial_peripheral_interface_slave
API Reference Manual  /  4 Model-to-Model Interfaces  / 

serial_peripheral_interface_master

Description
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.

SEE ALSO
serial_peripheral_interface_slave_interface_t
Execution Context
Cell Context for all methods.

serial_device serial_peripheral_interface_slave