17#ifndef MBED_SPISLAVE_H
18#define MBED_SPISLAVE_H
20#include "platform/platform.h"
21#include "platform/NonCopyable.h"
23#if DEVICE_SPISLAVE || defined(DOXYGEN_ONLY)
25#include "hal/spi_api.h"
72 SPISlave(PinName mosi, PinName miso, PinName sclk, PinName ssel);
125#if !defined(DOXYGEN_ONLY)
Prevents generation of copy constructor and copy assignment operator in derived classes.
A SPI slave, used for communicating with a SPI master device.
int receive(void)
Polls the SPI to see if data has been received.
void format(int bits, int mode=0)
Configure the data transmission format.
SPISlave(PinName mosi, PinName miso, PinName sclk, PinName ssel)
Create a SPI slave connected to the specified pins.
void reply(int value)
Fill the transmission buffer with the value to be written out as slave on the next received message f...
SPISlave(const spi_pinmap_t &pinmap)
Create a SPI slave connected to the specified pins.
int read(void)
Retrieve data from receive buffer as slave.
Asynch SPI HAL structure.