Enumerations | Functions

hal/nrf24le1/hal_spi.h File Reference

Interface functions for the Serial Peripheral Interface (SPI). More...

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

Go to the source code of this file.

Enumerations

enum  hal_spi_clkdivider_t {
  SPI_CLK_DIV2, SPI_CLK_DIV4, SPI_CLK_DIV8, SPI_CLK_DIV16,
  SPI_CLK_DIV32, SPI_CLK_DIV64, SPI_CLK_DIV128, SPI_CLK_DIV2,
  SPI_CLK_DIV4, SPI_CLK_DIV8, SPI_CLK_DIV16, SPI_CLK_DIV32,
  SPI_CLK_DIV64, SPI_CLK_DIV128
}
enum  hal_spi_byte_order_t { HAL_SPI_LSB_MSB, HAL_SPI_MSB_LSB, HAL_SPI_LSB_MSB, HAL_SPI_MSB_LSB }
enum  hal_spi_mode_t {
  HAL_SPI_MODE_0, HAL_SPI_MODE_1, HAL_SPI_MODE_2, HAL_SPI_MODE_3,
  HAL_SPI_MODE_0, HAL_SPI_MODE_1, HAL_SPI_MODE_2, HAL_SPI_MODE_3
}

Functions

void hal_spi_master_init (hal_spi_clkdivider_t ck, hal_spi_mode_t mode, hal_spi_byte_order_t bo)
uint8_t hal_spi_master_read_write (uint8_t pLoad)
void hal_spi_slave_init (hal_spi_mode_t mode, hal_spi_byte_order_t bo)
uint8_t hal_spi_slave_rw (uint8_t pLoad)
uint8_t hal_spi_slave_read (void)
void hal_spi_slave_preload (uint8_t pLoad)
_Bool spi_slave_data_ready (void)
_Bool hal_spi_slave_csn_high (void)

Detailed Description

Interface functions for the Serial Peripheral Interface (SPI).

Definition in file hal_spi.h.