Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_BCMSDHOST_HOST Struct Reference

#include <bcmsdhost.h>

Data Fields

SDHCI_HOST sdhci
uint32_t irq
 The IRQ number for this device.
SPIN_HANDLE lock
 Host lock (Differs from lock in Host portion) (Spin lock due to use by interrupt handler).
LONGBOOL enablefiq
 Use FIQ instead of IRQ.
uint32_t gpiofirst
 The starting pin number for GPIO assignments (or GPIO_PIN_UNKNOWN if externally configured).
uint32_t gpiolast
 The ending pin number for GPIO assignments (or GPIO_PIN_UNKNOWN if externally configured).
uint32_t gpiofunction
 The function number for GPIO assignments (or GPIO_FUNCTION_UNKNOWN if externally configured).
uint32_t clockdivider
 Cached Clock Divider (CDIV) register.
uint32_t hostconfiguration
 Cached Host Configuration (HCFG) register.
LONGBOOL firmwaresetsclockdivider
 True if the firmware controls the clock divider.
uint32_t commandquickpollretries
uint32_t nanosecondsperfifoword
LONGBOOL allowdma
 Allow DMA to be used for data transfers.
LONGBOOL resetclock
 Reset the clock for the next request.
uint32_t maxdelay
 Maximum length of time spent waiting (in Milliseconds).
int64_t stoptime
 When the last stop was issued (in Clock Ticks).
uint32_t drainwords
 Last words of FIFO to drain on DMA read.
uint32_t drainoffset
 Offset for data during FIFO drain on DMA read.
LONGBOOL usesbc
 Use CMD23 (Set Block Count) for the current transfer.
LONGBOOL usebusy
 Wait for busy interrupt on current command.
uint32_t delayafterstop
 Minimum time between stop and subsequent data transfer (in Microseconds).
uint32_t delayafterthisstop
 Minimum time between this stop and subsequent data transfer (in Microseconds).
uint32_t useroverclock50
 User's preferred frequency to use when 50MHz is requested (in MHz).
uint32_t overclock50
 Frequency to use when 50MHz is requested (in MHz).
uint32_t overclock
 Current frequency if overclocked, else zero (in Hz).
uint32_t piolimit
 Maximum block count for PIO (0 = always DMA / 0x7FFFFFF = always PIO).
uint32_t piotimeout
 PIO Read or Write block timeout (in milliseconds).

Field Documentation

◆ sdhci

SDHCI_HOST sdhci

◆ irq

uint32_t irq

The IRQ number for this device.

◆ lock

Host lock (Differs from lock in Host portion) (Spin lock due to use by interrupt handler).

◆ enablefiq

LONGBOOL enablefiq

Use FIQ instead of IRQ.

◆ gpiofirst

uint32_t gpiofirst

The starting pin number for GPIO assignments (or GPIO_PIN_UNKNOWN if externally configured).

◆ gpiolast

uint32_t gpiolast

The ending pin number for GPIO assignments (or GPIO_PIN_UNKNOWN if externally configured).

◆ gpiofunction

uint32_t gpiofunction

The function number for GPIO assignments (or GPIO_FUNCTION_UNKNOWN if externally configured).

◆ clockdivider

uint32_t clockdivider

Cached Clock Divider (CDIV) register.

◆ hostconfiguration

uint32_t hostconfiguration

Cached Host Configuration (HCFG) register.

◆ firmwaresetsclockdivider

LONGBOOL firmwaresetsclockdivider

True if the firmware controls the clock divider.

◆ commandquickpollretries

uint32_t commandquickpollretries

◆ nanosecondsperfifoword

uint32_t nanosecondsperfifoword

◆ allowdma

LONGBOOL allowdma

Allow DMA to be used for data transfers.

◆ resetclock

LONGBOOL resetclock

Reset the clock for the next request.

◆ maxdelay

uint32_t maxdelay

Maximum length of time spent waiting (in Milliseconds).

◆ stoptime

int64_t stoptime

When the last stop was issued (in Clock Ticks).

◆ drainwords

uint32_t drainwords

Last words of FIFO to drain on DMA read.

◆ drainoffset

uint32_t drainoffset

Offset for data during FIFO drain on DMA read.

◆ usesbc

LONGBOOL usesbc

Use CMD23 (Set Block Count) for the current transfer.

◆ usebusy

LONGBOOL usebusy

Wait for busy interrupt on current command.

◆ delayafterstop

uint32_t delayafterstop

Minimum time between stop and subsequent data transfer (in Microseconds).

◆ delayafterthisstop

uint32_t delayafterthisstop

Minimum time between this stop and subsequent data transfer (in Microseconds).

◆ useroverclock50

uint32_t useroverclock50

User's preferred frequency to use when 50MHz is requested (in MHz).

◆ overclock50

uint32_t overclock50

Frequency to use when 50MHz is requested (in MHz).

◆ overclock

uint32_t overclock

Current frequency if overclocked, else zero (in Hz).

◆ piolimit

uint32_t piolimit

Maximum block count for PIO (0 = always DMA / 0x7FFFFFF = always PIO).

◆ piotimeout

uint32_t piotimeout

PIO Read or Write block timeout (in milliseconds).


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