MSP430 DriverLib for MSP430i2xx Devices  2.10.00.09
 All Data Structures Functions Variables Modules Pages
EUSCI_A_SPI_initMasterParam Struct Reference

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

#include <eusci_a_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.
 
uint16_t msbFirst
 
uint16_t clockPhase
 
uint16_t clockPolarity
 
uint16_t spiMode
 

Detailed Description

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

Field Documentation

uint16_t EUSCI_A_SPI_initMasterParam::clockPhase

Is clock phase select.
Valid values are:

  • EUSCI_A_SPI_PHASE_DATA_CHANGED_ONFIRST_CAPTURED_ON_NEXT [Default]
  • EUSCI_A_SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT

Referenced by EUSCI_A_SPI_initMaster().

uint16_t EUSCI_A_SPI_initMasterParam::clockPolarity

Is clock polarity select
Valid values are:

  • EUSCI_A_SPI_CLOCKPOLARITY_INACTIVITY_HIGH
  • EUSCI_A_SPI_CLOCKPOLARITY_INACTIVITY_LOW [Default]

Referenced by EUSCI_A_SPI_initMaster().

uint16_t EUSCI_A_SPI_initMasterParam::msbFirst

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

  • EUSCI_A_SPI_MSB_FIRST
  • EUSCI_A_SPI_LSB_FIRST [Default]

Referenced by EUSCI_A_SPI_initMaster().

uint8_t EUSCI_A_SPI_initMasterParam::selectClockSource

Selects Clock source.
Valid values are:

  • EUSCI_A_SPI_CLOCKSOURCE_ACLK
  • EUSCI_A_SPI_CLOCKSOURCE_SMCLK

Referenced by EUSCI_A_SPI_initMaster().

uint16_t EUSCI_A_SPI_initMasterParam::spiMode

Is SPI mode select
Valid values are:

  • EUSCI_A_SPI_3PIN
  • EUSCI_A_SPI_4PIN_UCxSTE_ACTIVE_HIGH
  • EUSCI_A_SPI_4PIN_UCxSTE_ACTIVE_LOW

Referenced by EUSCI_A_SPI_initMaster().


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

Copyright 2015, Texas Instruments Incorporated