Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MtsspSpiDriver Class Reference
Implementation of MtsspDriver for communicating over SPI. More...
Inherits MtsspDriver.
Public Member Functions | |
| MtsspSpiDriver () | |
| Constructor. | |
| virtual | ~MtsspSpiDriver () |
| Destructor. | |
| virtual void | write (uint8_t opcode, uint8_t const *data, int dataLength) |
| Perform a blocking write transfer over SPI. | |
| virtual void | read (uint8_t opcode, uint8_t *dest, int destMax) |
| Perform a blocking read transfer over SPI. | |
| virtual void | writeRaw (uint8_t const *data, int dataLength) |
| Perform a blocking write transfer over SPI. | |
| virtual XbusBusFormat | busFormat () const |
| Returns the low level bus format that must be used for tranmitting messages over this hardware bus. | |
Detailed Description
Implementation of MtsspDriver for communicating over SPI.
The low level SPI driver is provided by the mbed platform.
Definition at line 22 of file mtssp_spi_driver.h.
Constructor & Destructor Documentation
| MtsspSpiDriver | ( | ) |
Constructor.
Definition at line 31 of file mtssp_spi_driver.cpp.
| ~MtsspSpiDriver | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file mtssp_spi_driver.cpp.
Member Function Documentation
| virtual XbusBusFormat busFormat | ( | ) | const [virtual] |
Returns the low level bus format that must be used for tranmitting messages over this hardware bus.
Implements MtsspDriver.
Definition at line 32 of file mtssp_spi_driver.h.
| void read | ( | uint8_t | opcode, |
| uint8_t * | data, | ||
| int | dataLength | ||
| ) | [virtual] |
Perform a blocking read transfer over SPI.
- Parameters:
-
opcode Opcode to use data Pointer to result buffer dataLength Number of data bytes to read
Implements MtsspDriver.
Definition at line 79 of file mtssp_spi_driver.cpp.
| void write | ( | uint8_t | opcode, |
| uint8_t const * | data, | ||
| int | dataLength | ||
| ) | [virtual] |
Perform a blocking write transfer over SPI.
- Parameters:
-
opcode Opcode to use data Pointer to data to be written dataLength Number of data bytes to write
Implements MtsspDriver.
Definition at line 57 of file mtssp_spi_driver.cpp.
| void writeRaw | ( | uint8_t const * | data, |
| int | dataLength | ||
| ) | [virtual] |
Perform a blocking write transfer over SPI.
- Parameters:
-
data Pointer to data to be written dataLength Number of data bytes to write
Implements MtsspDriver.
Definition at line 100 of file mtssp_spi_driver.cpp.
Generated on Wed Jul 13 2022 07:56:16 by
1.7.2

