![]() |
Samsung Internal API reference
2.0
|
TEE SPI public API. More...
Go to the source code of this file.
Data Structures | |
| struct | TEES_SPIConfig |
| Configuration of SPI device. More... | |
| struct | TEES_SPITransfer |
| Descriptor to transfer data over SPI. More... | |
Typedefs | |
| typedef struct __TEES_SPIHandlerImpl * | TEES_SPIHandler |
Functions | |
| TEE_Result | TEES_SPIDMAInit (uintptr_t address) |
| Initialize DMA for working with SPI device. More... | |
| TEE_Result | TEES_SPIInit (uint32_t port, const TEES_SPIConfig *cfg, TEES_SPIHandler *handler) |
| Initialize handler fields. More... | |
| TEE_Result | TEES_SPIExit (TEES_SPIHandler handler) |
| Free handler resource. More... | |
| TEE_Result | TEES_SPISetConfig (TEES_SPIHandler handler, const TEES_SPIConfig *cfg) |
| Initialize handler with configuration values. More... | |
| TEE_Result | TEES_SPISetClockSpeed (TEES_SPIHandler handler, uint32_t speedHz) |
| Set clock frequency rate. More... | |
| TEE_Result | TEES_SPISetBitsPerWord (TEES_SPIHandler handler, uint8_t bitsPerWord) |
| Set the number of bits that will be transferred per SPI rate. More... | |
| TEE_Result | TEES_SPISetDMAMode (TEES_SPIHandler handler, bool isEnabled) |
| Enable or disable DMA mode. More... | |
| TEE_Result | TEES_SPISetCPOL (TEES_SPIHandler handler, uint8_t cpol) |
| Set SPI clock polarity bit. More... | |
| TEE_Result | TEES_SPISetCPHA (TEES_SPIHandler handler, uint8_t cpha) |
| Set SPI clock phase bit. More... | |
| TEE_Result | TEES_SPIClockEnable (TEES_SPIHandler handler) |
| Not implemented. More... | |
| TEE_Result | TEES_SPIClockDisable (TEES_SPIHandler handler) |
| Not implemented. More... | |
| TEE_Result | TEES_SPIWrite (TEES_SPIHandler handler, TEES_SPITransfer *tx) |
| Transfer data from buffer bus to SPI. More... | |
| TEE_Result | TEES_SPIRead (TEES_SPIHandler handler, TEES_SPITransfer *rx) |
| Transfer data from SPI bus to buffer. More... | |
| TEE_Result | TEES_SPIWriteRead (TEES_SPIHandler handler, TEES_SPITransfer *tx, TEES_SPITransfer *rx) |
| Transfer data from buffer to SPI bus. More... | |
TEE SPI public API.