MSP430 DriverLib for MSP430F5xx_6xx Devices  2.60.00.02
 All Data Structures Functions Variables Modules Pages
USCI_B_SPI_initMasterParam Struct Reference

Used in the USCI_B_SPI_initMaster() function as the param parameter. More...

#include <usci_b_spi.h>

Data Fields

uint8_t selectClockSource
 
uint32_t clockSourceFrequency
 Is the frequency of the selected clock source.
 
uint32_t desiredSpiClock
 Is the desired clock rate for SPI communication.
 
uint8_t msbFirst
 
uint8_t clockPhase
 
uint8_t clockPolarity
 

Detailed Description

Used in the USCI_B_SPI_initMaster() function as the param parameter.

Field Documentation

uint8_t USCI_B_SPI_initMasterParam::clockPhase

Is clock phase select.
Valid values are:

  • USCI_B_SPI_PHASE_DATA_CHANGED_ONFIRST_CAPTURED_ON_NEXT [Default]
  • USCI_B_SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT

Referenced by USCI_B_SPI_initMaster().

uint8_t USCI_B_SPI_initMasterParam::clockPolarity


Valid values are:

  • USCI_B_SPI_CLOCKPOLARITY_INACTIVITY_HIGH
  • USCI_B_SPI_CLOCKPOLARITY_INACTIVITY_LOW [Default]

Referenced by USCI_B_SPI_initMaster().

uint8_t USCI_B_SPI_initMasterParam::msbFirst

Controls the direction of the receive and transmit shift register.
Valid values are:

  • USCI_B_SPI_MSB_FIRST
  • USCI_B_SPI_LSB_FIRST [Default]

Referenced by USCI_B_SPI_initMaster().

uint8_t USCI_B_SPI_initMasterParam::selectClockSource

Selects Clock source.
Valid values are:

  • USCI_B_SPI_CLOCKSOURCE_ACLK
  • USCI_B_SPI_CLOCKSOURCE_SMCLK

Referenced by USCI_B_SPI_initMaster().


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

Copyright 2016, Texas Instruments Incorporated