uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SSP_CFG_Type Struct Reference

SSP configuration structure. More...

#include <lpc17xx_ssp.h>

Public Attributes

uint32_t Databit
 
uint32_t CPHA
 
uint32_t CPOL
 
uint32_t Mode
 
uint32_t FrameFormat
 
uint32_t ClockRate
 

Detailed Description

SSP configuration structure.

Definition at line 365 of file lpc17xx_ssp.h.

Member Data Documentation

uint32_t SSP_CFG_Type::ClockRate
Frame Format:
  • SSP_FRAME_SPI: Motorola SPI frame format
  • SSP_FRAME_TI: TI frame format
  • SSP_FRAME_MICROWIRE: National Microwire frame format

Definition at line 381 of file lpc17xx_ssp.h.

uint32_t SSP_CFG_Type::CPHA
Databit number, should be SSP_DATABIT_x,

where x is in range from 4 - 16

Definition at line 368 of file lpc17xx_ssp.h.

uint32_t SSP_CFG_Type::CPOL
Clock phase, should be:
  • SSP_CPHA_FIRST: first clock edge
  • SSP_CPHA_SECOND: second clock edge

Definition at line 371 of file lpc17xx_ssp.h.

uint32_t SSP_CFG_Type::Databit

Definition at line 366 of file lpc17xx_ssp.h.

uint32_t SSP_CFG_Type::FrameFormat
SSP mode, should be:
  • SSP_MASTER_MODE: Master mode
  • SSP_SLAVE_MODE: Slave mode

Definition at line 377 of file lpc17xx_ssp.h.

uint32_t SSP_CFG_Type::Mode
Clock polarity, should be:
  • SSP_CPOL_HI: high level
  • SSP_CPOL_LO: low level

Definition at line 374 of file lpc17xx_ssp.h.


The documentation for this struct was generated from the following file: