spi.c File Reference
Detailed Description
SPI implementation (license: GPLv2).
- Author:
- Roland Riegel
|
Functions |
| void | spi_init () |
| | Initializes the SPI interface.
|
| void | spi_send_byte (uint8_t b) |
| | Sends a byte over the SPI bus.
|
| uint8_t | spi_rec_byte () |
| | Receives a byte from the SPI bus.
|
| void | spi_send_data (const uint8_t *data, uint16_t data_len) |
| | Sends data contained in a buffer over the SPI bus.
|
| void | spi_rec_data (uint8_t *buffer, uint16_t buffer_len) |
| | Receives multiple bytes from the SPI bus and writes them to a buffer.
|
|
void | spi_low_frequency () |
| | Switches to the lowest SPI frequency possible.
|
|
void | spi_high_frequency () |
| | Switches to the highest SPI frequency possible.
|