# spi_common

SPI Host common definition

Author | Sebastien Lelong© 2011..2025, all rights reserved.
Adapted-by | Rob Jansen
Compiler | 2.5r9

Description

    SPI Host common constant definition, used both by MSSP1 and MSSP2

Dependencies

No dependency found

## Summary

### Global variables/contants

- `const SPI_MODE_10 = 2`
- `const SPI_MODE_00 = 0`
- `const SPI_MODE_11 = 3`
- `const SPI_MODE_01 = 1`

### Procedures

### Functions

## API details

### Global variables/contants

- `const SPI_MODE_10 = 2`

      Clock SPI data when SCK goes from high to low. SCK is inactive high.

- `const SPI_MODE_00 = 0`

      Use these when calling the spi_init() routine below (SPI host mode).

- `const SPI_MODE_11 = 3`

      Clock SPI data when SCK goes from low to high. SCK is inactive high.

- `const SPI_MODE_01 = 1`

      Clock SPI data when SCK goes from high to low. SCK is inactive low

### Procedures

### Functions

## Related samples

No sample found