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.
MtsspDriver Class Reference
Abstract interface providing the MTSSP interface with a abstraction layer to the underlying hardware bus. More...
#include <mtinterface_mtssp.h>
Inherited by MtsspI2cDriver, and MtsspSpiDriver.
Public Member Functions | |
| virtual void | write (uint8_t opcode, uint8_t const *data, int dataLength)=0 |
| Perform a blocking write transfer. | |
| virtual void | read (uint8_t opcode, uint8_t *data, int dataLength)=0 |
| Perform a blocking read transfer. | |
| virtual void | writeRaw (uint8_t const *data, int dataLength)=0 |
| Perform a blocking write transfer. | |
| virtual XbusBusFormat | busFormat () const =0 |
| Returns the low level bus format that must be used for tranmitting messages over this hardware bus. | |
Detailed Description
Abstract interface providing the MTSSP interface with a abstraction layer to the underlying hardware bus.
Definition at line 30 of file mtinterface_mtssp.h.
Member Function Documentation
| virtual XbusBusFormat busFormat | ( | ) | const [pure virtual] |
Returns the low level bus format that must be used for tranmitting messages over this hardware bus.
Implemented in MtsspI2cDriver, and MtsspSpiDriver.
| virtual void read | ( | uint8_t | opcode, |
| uint8_t * | data, | ||
| int | dataLength | ||
| ) | [pure virtual] |
Perform a blocking read transfer.
- Parameters:
-
opcode Opcode to use data Pointer to result buffer dataLength Number of data bytes to read
Implemented in MtsspI2cDriver, and MtsspSpiDriver.
| virtual void write | ( | uint8_t | opcode, |
| uint8_t const * | data, | ||
| int | dataLength | ||
| ) | [pure virtual] |
Perform a blocking write transfer.
- Parameters:
-
opcode Opcode to use data Pointer to data to be written dataLength Number of data bytes to write
Implemented in MtsspI2cDriver, and MtsspSpiDriver.
| virtual void writeRaw | ( | uint8_t const * | data, |
| int | dataLength | ||
| ) | [pure virtual] |
Perform a blocking write transfer.
- Parameters:
-
data Pointer to data to be written dataLength Number of data bytes to write
Implemented in MtsspI2cDriver, and MtsspSpiDriver.
Generated on Wed Jul 13 2022 07:56:16 by
1.7.2