Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
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 130 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 124 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 117 of file spi.h.