EBI - External Bus Interface#
EBI External Bus Interface (EBI) Peripheral API.
This module contains functions to control the EBI peripheral of Silicon Labs 32-bit MCUs and SoCs. The EBI is used for accessing external parallel devices. The devices appear as part of the internal memory map of the MCU.
Modules#
Enumerations#
EBI Mode of operation.
EBI Pin Line types.
Address Pin Enable, lower limit - lower range of pins to enable.
Address Pin Enable, high limit - higher limit of pins to enable.
EBI I/O Alternate Pin Location.
EBI TFT Graphics Bank Select.
Masking and Alpha blending source color.
Bus Data Interleave Mode.
Control frame base pointer copy.
Control of mask and alpha blending mode.
TFT Direct Drive mode.
TFT Data Increment Width.
Functions#
Configure and enable the External Bus Interface.
Disable External Bus Interface.
Enable or disable EBI Bank.
Return the base address of the EBI bank.
Enable or disable EBI NAND Flash Support.
Enable or disable EBI Chip Select.
Configure EBI pin polarity.
Configure timing values of read bus accesses.
Configure timing values of write bus accesses.
Configure timing values of address latch bus accesses.
Configure and initialize TFT Direct Drive.
Configure and initialize TFT size settings.
Configure and initialize Horizontal Porch Settings.
Configure Vertical Porch Settings.
Configure TFT Direct Drive Timing Settings.
Configure read operation parameters for a selected bank.
Configure timing values of read bus accesses.
Configure write operation parameters for a selected bank.
Configure timing values of write bus accesses.
Configure address operation parameters for a selected bank.
Configure timing values of address latch bus accesses.
Configure EBI pin polarity for selected bank(s) for devices with individual timing support.
Configure Byte Lane Enable for select banks timing support.
Configure the Alternate Address Map support.
Enable or disable TFT Direct Drive.
Configure frame buffer pointer.
Set TFT Pixel Color 0 or 1.
Set TFT Direct Drive Data from Internal Memory.
Masking and Blending Mode Set.
Masking and Blending Color1 Source Set.
Set TFT Alpha Blending Factor.
Set TFT mask value.
Get current vertical position counter.
Get current horizontal position counter.
Set Frame Buffer Trigger.
Set horizontal TFT stride value in number of bytes.
Clear one or more pending EBI interrupts.
Set one or more pending EBI interrupts.
Disable one or more EBI interrupts.
Enable one or more EBI interrupts.
Get pending EBI interrupt flags.
Get enabled and pending EBI interrupt flags.
Start ECC generator on NAND flash transfers.
Stop NAND flash ECC generator and return generated ECC.
Macros#
EBI address bank 0.
EBI address bank 1.
EBI address bank 2.
EBI address bank 3.
EBI chip select line 0.
EBI chip select line 1.
EBI chip select line 2.
EBI chip select line 3.
Pin Enable Lower Bound EBI_A[0] and upwards.
Pin Enable Lower Bound EBI_A[8] and upwards.
Pin Enable Lower Bound EBI_A[16] and upwards.
Pin Enable Lower Bound EBI_A[24] and upwards.
All EBI_A pins enabled.
EBI_A[4:L] pins enabled.
EBI_A[5:L] pins enabled.
EBI_A[6:L] pins enabled.
EBI_A[7:L] pins enabled.
EBI_A[8:L] pins enabled.
EBI_A[9:L] pins enabled.
EBI_A[10:L] pins enabled.
EBI_A[11:L] pins enabled.
EBI_A[12:L] pins enabled.
EBI_A[13:L] pins enabled.
EBI_A[14:L] pins enabled.
EBI_A[15:L] pins enabled.
EBI_A[16:L] pins enabled.
EBI_A[17:L] pins enabled.
EBI_A[18:L] pins enabled.
EBI_A[19:L] pins enabled.
EBI_A[20:L] pins enabled.
EBI_A[21:L] pins enabled.
EBI_A[22:L] pins enabled.
EBI_A[23:L] pins enabled.
EBI_A[24:L] pins enabled.
EBI_A[25:L] pins enabled.
EBI_A[26:L] pins enabled.
EBI_A[27:L] pins enabled.
Default configuration for EBI initialization structures.
Default configuration for EBI TFT initialization structure.
Enumeration Documentation#
EBI_Mode_TypeDef#
EBI_Mode_TypeDef
EBI Mode of operation.
Enumerator | |
---|---|
ebiModeD8A8 | 8 data bits, 8 address bits. |
ebiModeD16A16ALE | 16 data bits, 16 address bits, using address latch enable. |
ebiModeD8A24ALE | 8 data bits, 24 address bits, using address latch enable. |
ebiModeD16 | Mode D16. |
EBI_Polarity_TypeDef#
EBI_Polarity_TypeDef
EBI Polarity configuration.
Enumerator | |
---|---|
ebiActiveLow | Active Low. |
ebiActiveHigh | Active High. |
EBI_Line_TypeDef#
EBI_Line_TypeDef
EBI Pin Line types.
Enumerator | |
---|---|
ebiLineARDY | Address Ready line. |
ebiLineALE | Address Latch Enable line. |
ebiLineWE | Write Enable line. |
ebiLineRE | Read Enable line. |
ebiLineCS | Chip Select line. |
ebiLineBL | BL line. |
ebiLineTFTVSync | TFT VSYNC line. |
ebiLineTFTHSync | TFT HSYNC line. |
ebiLineTFTDataEn | TFT Data enable line. |
ebiLineTFTDClk | TFT DCLK line. |
ebiLineTFTCS | TFT Chip select line. |
EBI_ALow_TypeDef#
EBI_ALow_TypeDef
Address Pin Enable, lower limit - lower range of pins to enable.
Enumerator | |
---|---|
ebiALowA0 | Address lines EBI_A[0] and upwards are enabled by APEN. |
ebiALowA8 | Address lines EBI_A[8] and upwards are enabled by APEN. |
ebiALowA16 | Address lines EBI_A[16] and upwards are enabled by APEN. |
ebiALowA24 | Address lines EBI_A[24] and upwards are enabled by APEN. |
EBI_AHigh_TypeDef#
EBI_AHigh_TypeDef
Address Pin Enable, high limit - higher limit of pins to enable.
Enumerator | |
---|---|
ebiAHighA0 | All EBI_A pins are disabled. |
ebiAHighA5 | All EBI_A[4:ALow] are enabled. |
ebiAHighA6 | All EBI_A[5:ALow] are enabled. |
ebiAHighA7 | All EBI_A[6:ALow] are enabled. |
ebiAHighA8 | All EBI_A[7:ALow] are enabled. |
ebiAHighA9 | All EBI_A[8:ALow] are enabled. |
ebiAHighA10 | All EBI_A[9:ALow] are enabled. |
ebiAHighA11 | All EBI_A[10:ALow] are enabled. |
ebiAHighA12 | All EBI_A[11:ALow] are enabled. |
ebiAHighA13 | All EBI_A[12:ALow] are enabled. |
ebiAHighA14 | All EBI_A[13:ALow] are enabled. |
ebiAHighA15 | All EBI_A[14:ALow] are enabled. |
ebiAHighA16 | All EBI_A[15:ALow] are enabled. |
ebiAHighA17 | All EBI_A[16:ALow] are enabled. |
ebiAHighA18 | All EBI_A[17:ALow] are enabled. |
ebiAHighA19 | All EBI_A[18:ALow] are enabled. |
ebiAHighA20 | All EBI_A[19:ALow] are enabled. |
ebiAHighA21 | All EBI_A[20:ALow] are enabled. |
ebiAHighA22 | All EBI_A[21:ALow] are enabled. |
ebiAHighA23 | All EBI_A[22:ALow] are enabled. |
ebiAHighA24 | All EBI_A[23:ALow] are enabled. |
ebiAHighA25 | All EBI_A[24:ALow] are enabled. |
ebiAHighA26 | All EBI_A[25:ALow] are enabled. |
ebiAHighA27 | All EBI_A[26:ALow] are enabled. |
ebiAHighA28 | All EBI_A[27:ALow] are enabled. |
EBI_Location_TypeDef#
EBI_Location_TypeDef
EBI I/O Alternate Pin Location.
Enumerator | |
---|---|
ebiLocation0 | EBI PIN I/O Location 0. |
ebiLocation1 | EBI PIN I/O Location 1. |
ebiLocation2 | EBI PIN I/O Location 2. |
EBI_TFTBank_TypeDef#
EBI_TFTBank_TypeDef
EBI TFT Graphics Bank Select.
Enumerator | |
---|---|
ebiTFTBank0 | Memory BANK0 contains frame buffer. |
ebiTFTBank1 | Memory BANK1 contains frame buffer. |
ebiTFTBank2 | Memory BANK2 contains frame buffer. |
ebiTFTBank3 | Memory BANK3 contains frame buffer. |
EBI_TFTColorSrc_TypeDef#
EBI_TFTColorSrc_TypeDef
Masking and Alpha blending source color.
Enumerator | |
---|---|
ebiTFTColorSrcMem | Use memory as source color for masking/alpha blending. |
ebiTFTColorSrcPixel1 | Use PIXEL1 register as source color for masking/alpha blending. |
EBI_TFTInterleave_TypeDef#
EBI_TFTInterleave_TypeDef
Bus Data Interleave Mode.
Enumerator | |
---|---|
ebiTFTInterleaveUnlimited | Unlimited interleaved accesses per EBI_DCLK period. |
ebiTFTInterleaveOnePerDClk | Allow 1 interleaved access per EBI_DCLK period. |
ebiTFTInterleavePorch | Only allow accesses during porch periods. |
EBI_TFTFrameBufTrigger_TypeDef#
EBI_TFTFrameBufTrigger_TypeDef
Control frame base pointer copy.
Enumerator | |
---|---|
ebiTFTFrameBufTriggerVSync | Trigger update of frame buffer pointer on vertical sync. |
ebiTFTFrameBufTriggerHSync | Trigger update of frame buffer pointer on horizontal sync. |
EBI_TFTMaskBlend_TypeDef#
EBI_TFTMaskBlend_TypeDef
Control of mask and alpha blending mode.
Enumerator | |
---|---|
ebiTFTMBDisabled | Masking and blending are disabled. |
ebiTFTMBIMask | Internal masking. |
ebiTFTMBIAlpha | Internal alpha blending. |
ebiTFTMBIMaskAlpha | Internal masking and alpha blending are enabled. |
ebiTFTMBEMask | External masking. |
ebiTFTMBEAlpha | External alpha blending. |
ebiTFTMBEMaskAlpha | External masking and alpha blending. |
EBI_TFTDDMode_TypeDef#
EBI_TFTDDMode_TypeDef
TFT Direct Drive mode.
Enumerator | |
---|---|
ebiTFTDDModeDisabled | Disabled. |
ebiTFTDDModeInternal | Direct Drive from internal memory. |
ebiTFTDDModeExternal | Direct Drive from external memory. |
EBI_TFTWidth_TypeDef#
EBI_TFTWidth_TypeDef
TFT Data Increment Width.
Enumerator | |
---|---|
ebiTFTWidthByte | Pixel increments are 1 byte at a time. |
ebiTFTWidthHalfWord | Pixel increments are 2 bytes (half word). |
Function Documentation#
EBI_Init#
void EBI_Init (const EBI_Init_TypeDef * ebiInit)
Configure and enable the External Bus Interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
const EBI_Init_TypeDef * | [in] | ebiInit | The EBI configuration structure. |
Note
GPIO lines must be configured as a PUSH_PULL for the correct operation. GPIO and EBI clocks must be enabled in the CMU.
EBI_Disable#
void EBI_Disable (void )
Disable External Bus Interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
EBI_BankEnable#
void EBI_BankEnable (uint32_t banks, bool enable)
Enable or disable EBI Bank.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | Banks to reconfigure, mask of EBI_BANK<n> flags. |
bool | [in] | enable | True to enable, false to disable. |
EBI_BankAddress#
uint32_t EBI_BankAddress (uint32_t bank)
Return the base address of the EBI bank.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | bank | A bank to return the start address for. |
Returns
an absolute address of the bank.
EBI_NANDFlashEnable#
void EBI_NANDFlashEnable (uint32_t banks, bool enable)
Enable or disable EBI NAND Flash Support.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | Banks to reconfigure, mask of EBI_BANK<n> flags. |
bool | [in] | enable | True to enable, false to disable. |
EBI_ChipSelectEnable#
void EBI_ChipSelectEnable (uint32_t cs, bool enable)
Enable or disable EBI Chip Select.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | cs | ChipSelect lines to reconfigure, mask of EBI_CS<n> flags. |
bool | [in] | enable | True to enable, false to disable. |
EBI_PolaritySet#
void EBI_PolaritySet (EBI_Line_TypeDef line, EBI_Polarity_TypeDef polarity)
Configure EBI pin polarity.
Type | Direction | Argument Name | Description |
---|---|---|---|
EBI_Line_TypeDef | [in] | line | Which pin/line to configure. |
EBI_Polarity_TypeDef | [in] | polarity | Active high or active low. |
EBI_ReadTimingSet#
void EBI_ReadTimingSet (uint32_t setupCycles, uint32_t strobeCycles, uint32_t holdCycles)
Configure timing values of read bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | setupCycles | A number of clock cycles for the address setup before REn is asserted. |
uint32_t | [in] | strobeCycles | The number of cycles the REn is held active. After the specified number of cycles, data is read. If set to 0, 1 cycle is inserted by hardware. |
uint32_t | [in] | holdCycles | The number of cycles CSn is held active after the REn is deasserted. |
EBI_WriteTimingSet#
void EBI_WriteTimingSet (uint32_t setupCycles, uint32_t strobeCycles, uint32_t holdCycles)
Configure timing values of write bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | setupCycles | A number of clock cycles for the address setup before WEn is asserted. |
uint32_t | [in] | strobeCycles | A number of cycles WEn is held active. If set to 0, 1 cycle is inserted by hardware. |
uint32_t | [in] | holdCycles | A number of cycles CSn is held active after the WEn is deasserted. |
EBI_AddressTimingSet#
void EBI_AddressTimingSet (uint32_t setupCycles, uint32_t holdCycles)
Configure timing values of address latch bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | setupCycles | Sets the number of cycles the address is held after ALE is asserted. |
uint32_t | [in] | holdCycles | Sets the number of cycles the address is driven onto the ADDRDAT bus before ALE is asserted. If set 0, 1 cycle is inserted by hardware. |
EBI_TFTInit#
void EBI_TFTInit (const EBI_TFTInit_TypeDef * ebiTFTInit)
Configure and initialize TFT Direct Drive.
Type | Direction | Argument Name | Description |
---|---|---|---|
const EBI_TFTInit_TypeDef * | [in] | ebiTFTInit | The TFT Initialization structure. |
EBI_TFTSizeSet#
void EBI_TFTSizeSet (uint32_t horizontal, uint32_t vertical)
Configure and initialize TFT size settings.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | horizontal | TFT display horizontal size in pixels. |
uint32_t | [in] | vertical | TFT display vertical size in pixels. |
EBI_TFTHPorchSet#
void EBI_TFTHPorchSet (uint32_t front, uint32_t back, uint32_t pulseWidth)
Configure and initialize Horizontal Porch Settings.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | front | Horizontal front porch size in pixels. |
uint32_t | [in] | back | Horizontal back porch size in pixels. |
uint32_t | [in] | pulseWidth | Horizontal synchronization pulse width. Set to required -1. |
EBI_TFTVPorchSet#
void EBI_TFTVPorchSet (uint32_t front, uint32_t back, uint32_t pulseWidth)
Configure Vertical Porch Settings.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | front | Vertical front porch size in pixels. |
uint32_t | [in] | back | Vertical back porch size in pixels. |
uint32_t | [in] | pulseWidth | Vertical synchronization pulse width. Set to required -1. |
EBI_TFTTimingSet#
void EBI_TFTTimingSet (uint32_t dclkPeriod, uint32_t start, uint32_t setup, uint32_t hold)
Configure TFT Direct Drive Timing Settings.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | dclkPeriod | DCLK period in internal cycles. |
uint32_t | [in] | start | A starting position of the external direct drive, relative to the DCLK inactive edge. |
uint32_t | [in] | setup | A number of cycles that RGB data is driven before the active edge of DCLK. |
uint32_t | [in] | hold | A number of cycles that RGB data is held after the active edge of DCLK. |
EBI_BankReadTimingConfig#
void EBI_BankReadTimingConfig (uint32_t banks, bool pageMode, bool prefetch, bool halfRE)
Configure read operation parameters for a selected bank.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure write timing for. |
bool | [in] | pageMode | Enables or disables the half cycle WE strobe in the last strobe cycle. |
bool | [in] | prefetch | Enables or disables the half cycle WE strobe in the last strobe cycle. |
bool | [in] | halfRE | Enables or disables the half cycle WE strobe in the last strobe cycle. |
EBI_BankReadTimingSet#
void EBI_BankReadTimingSet (uint32_t banks, uint32_t setupCycles, uint32_t strobeCycles, uint32_t holdCycles)
Configure timing values of read bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure timing for. |
uint32_t | [in] | setupCycles | A number of clock cycles for address setup before REn is asserted. |
uint32_t | [in] | strobeCycles | The number of cycles the REn is held active. After the specified number of cycles, data is read. If set to 0, 1 cycle is inserted by hardware. |
uint32_t | [in] | holdCycles | The number of cycles CSn is held active after the REn is deasserted. |
EBI_BankWriteTimingConfig#
void EBI_BankWriteTimingConfig (uint32_t banks, bool writeBufDisable, bool halfWE)
Configure write operation parameters for a selected bank.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure write timing for. |
bool | [in] | writeBufDisable | If true, disable the write buffer. |
bool | [in] | halfWE | Enables or disables half cycle WE strobe in the last strobe cycle. |
EBI_BankWriteTimingSet#
void EBI_BankWriteTimingSet (uint32_t banks, uint32_t setupCycles, uint32_t strobeCycles, uint32_t holdCycles)
Configure timing values of write bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure write timing for. |
uint32_t | [in] | setupCycles | A number of clock cycles for address setup before WEn is asserted. |
uint32_t | [in] | strobeCycles | A number of cycles WEn is held active. If set to 0, 1 cycle is inserted by hardware. |
uint32_t | [in] | holdCycles | Number of cycles CSn is held active after WEn is deasserted. |
EBI_BankAddressTimingConfig#
void EBI_BankAddressTimingConfig (uint32_t banks, bool halfALE)
Configure address operation parameters for a selected bank.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure write timing for. |
bool | [in] | halfALE | Enables or disables the half cycle ALE strobe in the last strobe cycle. |
EBI_BankAddressTimingSet#
void EBI_BankAddressTimingSet (uint32_t banks, uint32_t setupCycles, uint32_t holdCycles)
Configure timing values of address latch bus accesses.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure address timing for. |
uint32_t | [in] | setupCycles | Sets the number of cycles the address is held after ALE is asserted. |
uint32_t | [in] | holdCycles | Sets the number of cycles the address is driven onto the ADDRDAT bus before ALE is asserted. If set 0, 1 cycle is inserted by hardware. |
EBI_BankPolaritySet#
void EBI_BankPolaritySet (uint32_t banks, EBI_Line_TypeDef line, EBI_Polarity_TypeDef polarity)
Configure EBI pin polarity for selected bank(s) for devices with individual timing support.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure polarity for. |
EBI_Line_TypeDef | [in] | line | Which pin/line to configure. |
EBI_Polarity_TypeDef | [in] | polarity | Active high, or active low. |
EBI_BankByteLaneEnable#
void EBI_BankByteLaneEnable (uint32_t banks, bool enable)
Configure Byte Lane Enable for select banks timing support.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | banks | A mask of memory bank(s) to configure polarity for. |
bool | [in] | enable | A flag |
EBI_AltMapEnable#
void EBI_AltMapEnable (bool enable)
Configure the Alternate Address Map support.
Type | Direction | Argument Name | Description |
---|---|---|---|
bool | [in] | enable | Set or clear the address map extension. |
Enables or disables 256 MB address range for all banks.
EBI_TFTEnable#
void EBI_TFTEnable (EBI_TFTDDMode_TypeDef mode)
Enable or disable TFT Direct Drive.
Type | Direction | Argument Name | Description |
---|---|---|---|
EBI_TFTDDMode_TypeDef | [in] | mode | Drive from Internal or External memory, or Disable Direct Drive. |
EBI_TFTFrameBaseSet#
void EBI_TFTFrameBaseSet (uint32_t address)
Configure frame buffer pointer.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | address | Frame pointer address, as offset by EBI base address. |
EBI_TFTPixelSet#
void EBI_TFTPixelSet (int pixel, uint32_t color)
Set TFT Pixel Color 0 or 1.
Type | Direction | Argument Name | Description |
---|---|---|---|
int | [in] | pixel | Which pixel instance to set. |
uint32_t | [in] | color | Color of pixel, 16-bit value. |
EBI_TFTDDSet#
void EBI_TFTDDSet (uint32_t color)
Set TFT Direct Drive Data from Internal Memory.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | color | Color of pixel |
EBI_TFTMaskBlendMode#
void EBI_TFTMaskBlendMode (EBI_TFTMaskBlend_TypeDef maskBlend)
Masking and Blending Mode Set.
Type | Direction | Argument Name | Description |
---|---|---|---|
EBI_TFTMaskBlend_TypeDef | [in] | maskBlend | Masking and alpha blending mode. |
EBI_TFTColorSrcSet#
void EBI_TFTColorSrcSet (EBI_TFTColorSrc_TypeDef colorSrc)
Masking and Blending Color1 Source Set.
Type | Direction | Argument Name | Description |
---|---|---|---|
EBI_TFTColorSrc_TypeDef | [in] | colorSrc | Color1 source. |
EBI_TFTAlphaBlendSet#
void EBI_TFTAlphaBlendSet (uint8_t alpha)
Set TFT Alpha Blending Factor.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | [in] | alpha | 8-bit value indicating blending factor. |
EBI_TFTMaskSet#
void EBI_TFTMaskSet (uint32_t mask)
Set TFT mask value.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | mask |
Data accesses that matches this value are suppressed.
EBI_TFTVCount#
uint32_t EBI_TFTVCount (void )
Get current vertical position counter.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
Returns the current line position for the visible part of a frame.
EBI_TFTHCount#
uint32_t EBI_TFTHCount (void )
Get current horizontal position counter.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
Returns the current horizontal pixel position within a visible line.
EBI_TFTFBTriggerSet#
void EBI_TFTFBTriggerSet (EBI_TFTFrameBufTrigger_TypeDef sync)
Set Frame Buffer Trigger.
Type | Direction | Argument Name | Description |
---|---|---|---|
EBI_TFTFrameBufTrigger_TypeDef | [in] | sync | Trigger update of frame buffer pointer on vertical or horizontal sync. |
Frame buffer pointer will be updated either on each horizontal line (hsync) or vertical update (vsync).
EBI_TFTHStrideSet#
void EBI_TFTHStrideSet (uint32_t nbytes)
Set horizontal TFT stride value in number of bytes.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | nbytes | Number of bytes to add to frame buffer pointer after each horizontal line update. |
EBI_IntClear#
void EBI_IntClear (uint32_t flags)
Clear one or more pending EBI interrupts.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | flags | Pending EBI interrupt source to clear. Use a logical OR combination of valid interrupt flags for the EBI module (EBI_IF_nnn). |
EBI_IntSet#
void EBI_IntSet (uint32_t flags)
Set one or more pending EBI interrupts.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | flags | EBI interrupt sources to set to pending. Use a logical OR combination of valid interrupt flags for the EBI module (EBI_IF_nnn). |
EBI_IntDisable#
void EBI_IntDisable (uint32_t flags)
Disable one or more EBI interrupts.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | flags | EBI interrupt sources to disable. Use logical OR combination of valid interrupt flags for the EBI module (EBI_IF_nnn) |
EBI_IntEnable#
void EBI_IntEnable (uint32_t flags)
Enable one or more EBI interrupts.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | flags | EBI interrupt sources to enable. Use logical OR combination of valid interrupt flags for the EBI module (EBI_IF_nnn) |
EBI_IntGet#
uint32_t EBI_IntGet (void )
Get pending EBI interrupt flags.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Note
Event bits are not cleared by the use of this function.
Returns
EBI interrupt sources pending, a logical combination of valid EBI interrupt flags, EBI_IF_nnn.
EBI_IntGetEnabled#
uint32_t EBI_IntGetEnabled (void )
Get enabled and pending EBI interrupt flags.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Useful for handling more interrupt sources in the same interrupt handler.
Note
Interrupt flags are not cleared by the use of this function.
Returns
Pending and enabled EBI interrupt sources. The return value is the bitwise AND of
the enabled interrupt sources in EBI_IEN and
the pending interrupt flags EBI_IF.
EBI_StartNandEccGen#
void EBI_StartNandEccGen (void )
Start ECC generator on NAND flash transfers.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
EBI_StopNandEccGen#
uint32_t EBI_StopNandEccGen (void )
Stop NAND flash ECC generator and return generated ECC.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
The generated ECC.