SimpleLink MCU SDK Driver APIs  tidrivers_msp43x_3_01_01_03
SDSPIMSP432_HWAttrs Struct Reference

SDSPIMSP432 Hardware attributes. More...

#include <SDSPIMSP432.h>

Detailed Description

SDSPIMSP432 Hardware attributes.

The SDSPIMSP432 HWAttrs configuration structure contains SPI peripheral and GPIO Pin details required by the SDSPIMSP432 driver implementation.

The SDSPIMSP432 driver uses this information to:

Remarks
To initialize the SD Card into SPI mode, the SDSPI driver changes the SPI's MOSI pin into a GPIO pin so it can kept driven HIGH while the SPI SCK pin can toggle. After the initialization, the TX pin is reverted back to the SPI MOSI mode.

These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP432 driverlib these definitions are found in:

An example configuration structure could look as the following:

const SDSPIMSP432_HWAttrsV1 sdspiMSP432HWAttrs[MSP_EXP432P401R_SDSPICOUNT] = {
{
.baseAddr = EUSCI_B0_BASE,
.clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
// CLK, MOSI & MISO ports & pins
// Chip select port & pin
}
};

The documentation for this struct was generated from the following file:
Copyright 2016, Texas Instruments Incorporated