This module contains APIs to program and use the HYPERBUS module. The APIs can be used by other drivers to get access to HYPERBUS and also by application to initiate data transfer operation.
◆ HYPERBUS_MEM_OFFSET
#define HYPERBUS_MEM_OFFSET 0U |
Memory offset for HYPERBUS controller.
◆ HYPERBUS_MCR_CONFIGURABLE_CS_LOW_TIME
#define HYPERBUS_MCR_CONFIGURABLE_CS_LOW_TIME 0x1U |
Memory Configuration Register defines.
0x1 = configurable CS# low time, 0x0 otherwise
◆ HYPERBUS_MCR_NO_CONFIGURABLE_CS_LOW_TIME
#define HYPERBUS_MCR_NO_CONFIGURABLE_CS_LOW_TIME 0x0U |
◆ HYPERBUS_MCR_MAXLEN_2_BYTE
#define HYPERBUS_MCR_MAXLEN_2_BYTE 0x0U |
Maximum Length defines.
This bit indicates maximum read/write transaction length to memory. This bit is ignored when MAXEN bit is 0. 000000000: 2 Byte [1 HyperBus CK] 000000001: 4 Byte [2 HyperBus CK] 000000010: 6 Byte [3 HyperBus CK] 111111111: 1024 Byte [512 HyperBus CK]
◆ HYPERBUS_MCR_MAXLEN_4_BYTE
#define HYPERBUS_MCR_MAXLEN_4_BYTE 0x1U |
◆ HYPERBUS_MCR_MAXLEN_6_BYTE
#define HYPERBUS_MCR_MAXLEN_6_BYTE 0x2U |
◆ HYPERBUS_MCR_MAXLEN_1024_BYTE
#define HYPERBUS_MCR_MAXLEN_1024_BYTE 0x1FFU |
◆ HYPERBUS_MCR_MERGE_WRAP_INCR
#define HYPERBUS_MCR_MERGE_WRAP_INCR 0x1U |
Memory Configuration Register defines.
0x1 = merge WRAP and INCR, 0x0 otherwise
◆ HYPERBUS_MCR_NO_MERGE_WRAP_INCR
#define HYPERBUS_MCR_NO_MERGE_WRAP_INCR 0x0U |
◆ HYPERBUS_MCR_ASYMM_CACHE_SUPPORT
#define HYPERBUS_MCR_ASYMM_CACHE_SUPPORT 0x1U |
Memory Configuration Register defines.
0x1 = asymmetry cache support, 0x0 otherwise
◆ HYPERBUS_MCR_NO_ASYMM_CACHE_SUPPORT
#define HYPERBUS_MCR_NO_ASYMM_CACHE_SUPPORT 0x0U |
◆ HYPERBUS_MCR_MEM_SPACE
#define HYPERBUS_MCR_MEM_SPACE 0x0U |
Memory Configuration Register defines.
0x0 = memory space, 0x1 = CR space
◆ HYPERBUS_MCR_CR_SPACE
#define HYPERBUS_MCR_CR_SPACE 0x1U |
◆ HYPERBUS_MCR_HYPERFLASH
#define HYPERBUS_MCR_HYPERFLASH 0x0U |
Memory Configuration Register defines.
0x0 = HyperFlash, 0x1 = HyperRAM
◆ HYPERBUS_MCR_HYPERRAM
#define HYPERBUS_MCR_HYPERRAM 0x1U |
◆ HYPERBUS_MCR_WRAPSIZE_NONE
#define HYPERBUS_MCR_WRAPSIZE_NONE 0x0U |
Memory Configuration Register defines.
0x0 = wrap size none, 0x1 = 64B, 0x2 = 16B, 0x3 = 32B
◆ HYPERBUS_MCR_WRAPSIZE_64B
#define HYPERBUS_MCR_WRAPSIZE_64B 0x1U |
◆ HYPERBUS_MCR_WRAPSIZE_16B
#define HYPERBUS_MCR_WRAPSIZE_16B 0x2U |
◆ HYPERBUS_MCR_WRAPSIZE_32B
#define HYPERBUS_MCR_WRAPSIZE_32B 0x3U |
◆ HYPERBUS_CS0
#define HYPERBUS_CS0 (0U) |
◆ HYPERBUS_CS1
#define HYPERBUS_CS1 (1U) |
◆ HYPERBUS_Handle
◆ HYPERBUS_Devicetype
Enum for device type.
Enumerator |
---|
HYPERBUS_DEVICETYPE_HYPERRAM | |
HYPERBUS_DEVICETYPE_NONE | |
HYPERBUS_DEVICETYPE_HYPERFLASH | |
◆ HYPERBUS_init()
void HYPERBUS_init |
( |
void |
| ) |
|
This function initializes the HYPERBUS module.
◆ HYPERBUS_deinit()
void HYPERBUS_deinit |
( |
void |
| ) |
|
This function de-initializes the HYPERBUS module.
◆ HYPERBUS_open()
◆ HYPERBUS_close()
Function to close a HYPERBUS peripheral specified by the HYPERBUS handle.
- Precondition
- HYPERBUS_open() has to be called first
- Parameters
-
- See also
- HYPERBUS_open()
◆ HYPERBUS_getHandle()
◆ HYPERBUS_getHyperBusDataBaseAddr()
This function gets the SOC mapped data base address of the HyperRam.
- Precondition
- HYPERBUS controller has been opened using HYPERBUS_open()
- Parameters
-
- Returns
- Data BaseAddress of the HyperRam
◆ HYPERBUS_makeMemCfg()
This function returns the memory configuration of the HYPERBUS Instance.
- Precondition
- HYPERBUS controller has been opened using HYPERBUS_open()
- Parameters
-
- Returns
- memory configuration of the HYPERBUS Instance
◆ HYPERBUS_makeMemTiming()
This function returns the memory Timings of the HYPERBUS Instance.
- Precondition
- HYPERBUS controller has been opened using HYPERBUS_open()
- Parameters
-
- Returns
- memory Timings of the HYPERBUS Instance
◆ gHyperBusConfig
Externally defined driver configuration array.
◆ gHyperBusConfigNum
uint32_t gHyperBusConfigNum |
|
extern |
Externally defined driver configuration array size.