AM261x MCU+ SDK: MCSPILLD_Object Struct Reference

| AM261x MCU+ SDK 26.00.00 |

Data Fields
MCSPILLD_Object Struct Reference
APIs for SOC Specific Device Drivers » APIs for MCSPI LLD

## Detailed Description

MCSPI driver object.

## Data Fields
uint32_t | baseAddr
uint32_t | state
void * | transferMutex
MCSPILLD_InitHandle | hMcspiInit
uint32_t | errorFlag
uint32_t | transferChannel
uint32_t | transferCsDisable
uint32_t | transferDataSize
MCSPI_Transaction | transaction
void * | args

## Field Documentation

## ◆ baseAddr

uint32_t MCSPILLD_Object::baseAddr

Peripheral base address

## ◆ state

uint32_t MCSPILLD_Object::state

Driver state variable

## ◆ transferMutex

void* MCSPILLD_Object::transferMutex

Transfer Sync Sempahore - to signal transfer completion

## ◆ hMcspiInit

MCSPILLD_InitHandle MCSPILLD_Object::hMcspiInit

[IN] Initialization parameters of McSPI instance

## ◆ errorFlag

uint32_t MCSPILLD_Object::errorFlag

Variable to store different McSPI errors

## ◆ transferChannel

uint32_t MCSPILLD_Object::transferChannel

[IN] Channel number (chip select) to use for transfers

## ◆ transferCsDisable

uint32_t MCSPILLD_Object::transferCsDisable

[IN] TRUE/FALSE to disable CS(chip select) for transfers

## ◆ transferDataSize

uint32_t MCSPILLD_Object::transferDataSize

[IN] MCSPI data frame size in bits - valid values: 4 bits to 32 bits

## ◆ transaction

MCSPI_Transaction MCSPILLD_Object::transaction

Pointer to current transaction

## ◆ args

void* MCSPILLD_Object::args

Pointer to be used by application to store miscellaneous data.