#include "lib_mcu\spi\spi_drv.h"
Go to the source code of this file.
Enumerations | |
enum | spi_cf_t { SPI_MASTER, SPI_SLAVE } |
This enumeration allows to define a MASTER or SLAVE configuration. More... | |
Functions | |
bit | spi_init (spi_cf_t config) |
This function configures the SPI controller: -MASTER or SLAVE -bit timing -enable the controller. | |
char | spi_putchar (char uc_wr_byte) |
This function sends a byte on the SPI. | |
bit | spi_test_hit (void) |
This function checks if a bytes has been received on the SPI. | |
char | spi_getchar (void) |
This function reads a byte on the SPI. |
|
This enumeration allows to define a MASTER or SLAVE configuration.
|
|
This function reads a byte on the SPI.
|
|
This function configures the SPI controller: -MASTER or SLAVE -bit timing -enable the controller.
|
|
This function sends a byte on the SPI.
|
|
This function checks if a bytes has been received on the SPI.
|