Contiki 2.5
|
MSPI driver definitionsMore...
Go to the source code of this file.
Macros | |
#define | MSPI_BUS_MANAGER 1 |
#define | MSPI_MODE_0 (0x00) |
#define | MSPI_MODE_1 (0x02) |
#define | MSPI_MODE_2 (0x01) |
#define | MSPI_MODE_3 (0x03) |
#define | MSPI_BAUD_MAX (0x00) |
#define | MSPI_BAUD_2MBPS (0x01) |
#define | MSPI_BAUD_1MBPS (0x03) |
Functions | |
void | mspi_init (uint8_t cs, uint8_t mode, uint16_t baud) |
Initialize the selected USART in the MSPI mode. More... | |
uint8_t | mspi_transceive (uint8_t data) |
This function can be use either to transmit or receive data via spi. More... | |
void | mspi_chip_select (uint8_t cs) |
This function enables the chip select by setting the needed I/O pins (BCD-Code) More... | |
void | mspi_chip_release (uint8_t cs) |
This function disables the chip select. More... | |
void | mspi_deinit (void) |
This function will set all MSPI registers to their default values. | |
MSPI driver definitions
Definition in file mspi-drv.h.