Macros | Enumerations | Functions
hcl_spi.h File Reference
#include <stdint.h>
Include dependency graph for hcl_spi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPI_CHAN   0
 

Enumerations

enum  SPIMode { SPI_MODE0 = 0, SPI_MODE1 = 1, SPI_MODE2 = 2, SPI_MODE3 = 3 }
 

Functions

int spiInit (uint8_t mode, uint32_t khzspeed)
 
int spiRelease (void)
 
uint8_t spiTransfer (uint8_t value)
 

Macro Definition Documentation

◆ SPI_CHAN

#define SPI_CHAN   0

Definition at line 29 of file hcl_spi.h.

Enumeration Type Documentation

◆ SPIMode

enum SPIMode
Enumerator
SPI_MODE0 

CPOL = 0, CPHA = 0

SPI_MODE1 

CPOL = 0, CPHA = 1

SPI_MODE2 

CPOL = 1, CPHA = 0

SPI_MODE3 

CPOL = 1, CPHA = 1

Definition at line 22 of file hcl_spi.h.

Function Documentation

◆ spiInit()

int spiInit ( uint8_t  mode,
uint32_t  khzspeed 
)

Definition at line 45 of file hcl_spi_rpi.c.

◆ spiRelease()

int spiRelease ( void  )

Definition at line 67 of file hcl_spi_rpi.c.

◆ spiTransfer()

uint8_t spiTransfer ( uint8_t  value)

Definition at line 80 of file hcl_spi_rpi.c.



ess_imu_driver
Author(s):
autogenerated on Wed Dec 11 2024 03:06:30