Contiki 3.x
Functions
board-spi.h File Reference

Header file for the Sensortag/LaunchPad SPI Driver. More...

#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

void board_spi_open (uint32_t bit_rate, uint32_t clk_pin)
 Initialize the SPI interface. More...
 
void board_spi_close (void)
 Close the SPI interface. More...
 
void board_spi_flush (void)
 Clear data from the SPI interface. More...
 
bool board_spi_read (uint8_t *buf, size_t length)
 Read from an SPI device. More...
 
bool board_spi_write (const uint8_t *buf, size_t length)
 Write to an SPI device. More...
 

Detailed Description

Header file for the Sensortag/LaunchPad SPI Driver.

Definition in file board-spi.h.