|
Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Functions | |
| void | SPI_DevSetClockDivider (uint8_t div) |
| Set Clock Divider for SPI Device. More... | |
| SPI_Device_t * | SPI_devRequest (const char *name) |
| Request a SPI Device. More... | |
| int32_t | SPI_devInit (SPI_Device_t *dev, SPI_Device_init_t *init) |
| Initialize SPI device. More... | |
| int32_t | SPI_devReadData (SPI_Device_t *dev, uint8_t cmd, uint8_t *data, uint32_t len) |
| Read Data from SPI device. More... | |
| int32_t | SPI_devWriteData (SPI_Device_t *dev, uint8_t cmd, uint8_t *data, uint32_t len) |
| Write Data to SPI device. More... | |
| void | SPI_Handler (void) |
Variables | |
| static const SPI_Device_t * | SPI_DeviceTable [] |
| The instance of SPI device. More... | |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
| int32_t SPI_devInit | ( | SPI_Device_t * | dev, |
| SPI_Device_init_t * | init | ||
| ) |
Initialize SPI device.
| dev | The pointer to SPI device |
| init | Pointer to the initialization data struct. |
| int32_t SPI_devReadData | ( | SPI_Device_t * | dev, |
| uint8_t | cmd, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
Read Data from SPI device.
| dev | The pointer to SPI device |
| cmd | The enumeration of SPI command. |
| data | Pointer to the returned data block from SPI device. |
| len | The length of the data block to be returned from SPI device. |
| SPI_Device_t* SPI_devRequest | ( | const char * | name | ) |
Request a SPI Device.
| name | The name string of SPI device. |
| void SPI_DevSetClockDivider | ( | uint8_t | div | ) |
Set Clock Divider for SPI Device.
| div | The enumeration of the divider. |
| int32_t SPI_devWriteData | ( | SPI_Device_t * | dev, |
| uint8_t | cmd, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
Write Data to SPI device.
| dev | The pointer to SPI device |
| cmd | The enumeration of SPI command. |
| data | Pointer to the data block to be sent to SPI device. |
| len | The length of the data block to be sent to SPI device. |
| void SPI_Handler | ( | void | ) |
|
static |
The instance of SPI device.
The table of SPI device instances supported by the platform.
1.8.9.1