AM243x MCU+ SDK  10.00.00

Detailed Description

OSPI driver object.

Data Fields

OSPI_Handle handle
 
uint32_t transferMode
 
uint32_t protocol
 
uint32_t rdDummyCycles
 
uint32_t cmdDummyCycles
 
uint32_t rdDataCapDelay
 
uint32_t phyRdDataCapDelay
 
uint32_t numAddrBytes
 
uint32_t cmdExtType
 
uint32_t isOpen
 
uint32_t isDacEnable
 
SemaphoreP_Object lockObj
 
SemaphoreP_Object transferSemObj
 
HwiP_Object hwiObj
 
uint32_t phyEnableSuccess
 
OSPI_TransactioncurrTrans
 
void * ospiDmaHandle
 

Field Documentation

◆ handle

OSPI_Handle OSPI_Object::handle

Instance handle

◆ transferMode

uint32_t OSPI_Object::transferMode

Polling, Blocking or Callback mode. Refer OSPI_TransferMode

◆ protocol

uint32_t OSPI_Object::protocol

Protocol for OSPI reading/writing. 32 bit integer with byte0 -> data lines byte1 -> addr lines byte2 -> cmd lines byte3 -> STR/DTR (0 = STR, 1 = DTR)

◆ rdDummyCycles

uint32_t OSPI_Object::rdDummyCycles

Number of dummy cycles needed for read

◆ cmdDummyCycles

uint32_t OSPI_Object::cmdDummyCycles

Number of dummy cycles needed for cmd

◆ rdDataCapDelay

uint32_t OSPI_Object::rdDataCapDelay

Read data capture delays needed

◆ phyRdDataCapDelay

uint32_t OSPI_Object::phyRdDataCapDelay

Read data capture delays needed when phy is enabled

◆ numAddrBytes

uint32_t OSPI_Object::numAddrBytes

Number of bytes used to represent address to be sent to flash. This is the actual number of bytes used. The code to be programmed to registers is this value-1. That is, for 4-byte addressing mode, register should be programmed as 3

◆ cmdExtType

uint32_t OSPI_Object::cmdExtType

In dual byte opcode mode, the extended opcode can vary depending on flash This variable should be populated from the flash driver using the OSPI_setCmdExtType API

◆ isOpen

uint32_t OSPI_Object::isOpen

Flag to indicate if the instance is already open

◆ isDacEnable

uint32_t OSPI_Object::isDacEnable

Flag to indicate if DAC mode is enabled or not

◆ lockObj

SemaphoreP_Object OSPI_Object::lockObj

Driver lock object

◆ transferSemObj

SemaphoreP_Object OSPI_Object::transferSemObj

Transfer Sync Semaphore object

◆ hwiObj

HwiP_Object OSPI_Object::hwiObj

Interrupt object

◆ phyEnableSuccess

uint32_t OSPI_Object::phyEnableSuccess

This has to be set from the flash driver if the PHY tuning completed successfully

◆ currTrans

OSPI_Transaction* OSPI_Object::currTrans

Pointer to current transaction struct

◆ ospiDmaHandle

void* OSPI_Object::ospiDmaHandle