RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches

Overview

Enums used by the driver.

Configuration Enums

Enums used for driver initialization.

enum  cfg_mode { FULL_DUPLEX_SINGLE_LINE = 0 , HALF_DUPLEX_DUAL_LINE = 1 , HALF_DUPLEX_QUAD_LINE = 2 }
 SPI transfer mode configuration. More...
enum  cfg_cpol { LOW = 0 , HIGH = 1 }
 SPI clock polarity configuration. More...
enum  cfg_cpha { DATA_SAMPLED_RISE_EDGE = 0 , DATA_SAMPLED_FALL_EDGE = 1 }
 SPI clock phase configuration. More...

Enumeration Type Documentation

◆ cfg_cpha

enum cfg_cpha

#include <spi.h>

SPI clock phase configuration.

Enumerator
DATA_SAMPLED_RISE_EDGE 

Data sampled on rising clock ed.

DATA_SAMPLED_FALL_EDGE 

Data sampled on falling clock ed.

Definition at line 154 of file spi.h.

◆ cfg_cpol

enum cfg_cpol

#include <spi.h>

SPI clock polarity configuration.

Enumerator
LOW 

Clock is low when id.

HIGH 

Clock is high when id.

Definition at line 148 of file spi.h.

◆ cfg_mode

enum cfg_mode

#include <spi.h>

SPI transfer mode configuration.

Enumerator
FULL_DUPLEX_SINGLE_LINE 

Full-duplex mode using single data lin.

HALF_DUPLEX_DUAL_LINE 

Half-duplex mode using dual data lin.

HALF_DUPLEX_QUAD_LINE 

Half-duplex mode using quad data lin.

Definition at line 141 of file spi.h.