![]() |
MAX32690 Peripheral Driver API
Peripheral Driver API for the MAX32690
|
Modules | |
| HPB_Registers | |
Data Structures | |
| struct | mxc_hpb_cfg_reg_val_t |
| struct | mxc_hpb_mem_config_t |
Enumerations | |
| enum | mxc_hpb_cs_high_t |
| enum | mxc_hpb_cs_setup_hold_t |
| enum | mxc_hpb_latency_t |
| enum | mxc_hpb_device_t |
Functions | |
| void | MXC_HPB_RegRead8 (mxc_hpb_cfg_reg_val_t *cfg_reg_val, uint32_t base_addr, unsigned int index) |
| void | MXC_HPB_RegWrite8 (mxc_hpb_cfg_reg_val_t *cfg_reg_val, uint32_t base_addr, unsigned int index) |
| void | MXC_HPB_RegRead16 (mxc_hpb_cfg_reg_val_t *cfg_reg_val, uint32_t base_addr, unsigned int index) |
| void | MXC_HPB_RegWrite16 (mxc_hpb_cfg_reg_val_t *cfg_reg_val, uint32_t base_addr, unsigned int index) |
| int | MXC_HPB_Init (mxc_hpb_mem_config_t *mem0, mxc_hpb_mem_config_t *mem1) |
| uint32_t | MXC_HPB_GetStatus (void) |
| void | MXC_HPB_EnableInt (unsigned polarity) |
| unsigned | MXC_HPB_GetFlag (void) |
| struct mxc_hpb_cfg_reg_val_t |
| struct mxc_hpb_mem_config_t |
Structure type to configure the HPB controller.
| uint32_t base_addr |
The base address for memory space
| mxc_hpb_cfg_reg_val_t* cfg_reg_val |
Pointer to array of address offset/value pairs
| unsigned int cfg_reg_val_len |
number of configuration pairs
| mxc_hpb_device_t device_type |
Type of device attached to controller
| mxc_hpb_latency_t latency_cycle |
Latency Cycle for HyperRAM mode, ignored when the connected device is HyperFlash
| mxc_hpb_cs_high_t read_cs_high |
Before the read access, this setting inserts the CK cycles to the chip select high period.
| mxc_hpb_cs_setup_hold_t read_cs_hold |
In the read access, this setting inserts the CK cycles, between the falling edge of last CK and the rising edge of chip select.
| mxc_hpb_cs_setup_hold_t read_cs_setup |
In the read access, this setting inserts the CK cycles, between the falling edge of chip select and the rising edge of first CK.
| mxc_hpb_cs_high_t write_cs_high |
Before the write access, this setting inserts the CK cycles to the chip select high period.
| mxc_hpb_cs_setup_hold_t write_cs_hold |
In the write access, this setting inserts the CK cycles, between the falling edge of last CK and the rising edge of chip select
| mxc_hpb_cs_setup_hold_t write_cs_setup |
In the write access, this setting inserts the CK cycles, between the falling edge of chip select and the rising edge of first CK.
| enum mxc_hpb_cs_high_t |
Enumeration type to select the number of cycles CS is high.
Enumeration type to select the number of clock cycles between asserting the CS signal and the first clock cycle.
| enum mxc_hpb_device_t |
Enumeration type to select the type of device connected to the HPB controller.
| enum mxc_hpb_latency_t |
| void MXC_HPB_EnableInt | ( | unsigned | polarity | ) |
Enable HPB interrupt.
| polarity | 1 to use active high, 0 to use active low. |
| unsigned MXC_HPB_GetFlag | ( | void | ) |
Get HPB interrupt status.
| uint32_t MXC_HPB_GetStatus | ( | void | ) |
Returns the contents of the status register.
| int MXC_HPB_Init | ( | mxc_hpb_mem_config_t * | mem0, |
| mxc_hpb_mem_config_t * | mem1 | ||
| ) |
Configure the HyperBus peripheral.
| mem0 | Pointer to configuration struct for mem0 (may be NULL if this memory not used) |
| mem1 | Pointer to configuration struct for mem1 (may be NULL if this memory not used) |
| void MXC_HPB_RegRead16 | ( | mxc_hpb_cfg_reg_val_t * | cfg_reg_val, |
| uint32_t | base_addr, | ||
| unsigned int | index | ||
| ) |
Read a variable.
| cfg_reg_val | Pointer to configuration struct to read a variable |
| base_addr | Base address |
| index | 0 or 1 to determine which configuration settings |
| void MXC_HPB_RegRead8 | ( | mxc_hpb_cfg_reg_val_t * | cfg_reg_val, |
| uint32_t | base_addr, | ||
| unsigned int | index | ||
| ) |
Read a variable.
| cfg_reg_val | Pointer to configuration struct to read a variable |
| base_addr | Base address |
| index | 0 or 1 to determine which configuration settings |
| void MXC_HPB_RegWrite16 | ( | mxc_hpb_cfg_reg_val_t * | cfg_reg_val, |
| uint32_t | base_addr, | ||
| unsigned int | index | ||
| ) |
Read a variable.
| cfg_reg_val | Pointer to configuration struct to read a variable |
| base_addr | Base address |
| index | 0 or 1 to determine which configuration settings |
| void MXC_HPB_RegWrite8 | ( | mxc_hpb_cfg_reg_val_t * | cfg_reg_val, |
| uint32_t | base_addr, | ||
| unsigned int | index | ||
| ) |
Read a variable.
| cfg_reg_val | Pointer to configuration struct to read a variable |
| base_addr | Base address |
| index | 0 or 1 to determine which configuration settings |