Driver for the Glue Logic Controller.
This driver provides access to the main features of the Glue Logic controller.
See Quick Start Guide for the GLOC driver.
Data Structures | |
struct | gloc_dev_inst |
Glue Logic Controller driver software instance structure. More... | |
struct | gloc_lut_config |
GLOC lookup table (LUT) configuration structure. More... | |
Functions | |
void | gloc_disable (struct gloc_dev_inst *const dev_inst) |
Disable the GLOC module. More... | |
void | gloc_enable (struct gloc_dev_inst *const dev_inst) |
Enable the GLOC module. More... | |
void | gloc_init (struct gloc_dev_inst *const dev_inst, Gloc *const gloc) |
Initialize the GLOC module. More... | |
void | gloc_lut_get_config_defaults (struct gloc_lut_config *const config) |
Get the default configuration for lookup table (LUT) unit of GLOC. More... | |
void | gloc_lut_set_config (struct gloc_dev_inst *const dev_inst, uint32_t lut_id, struct gloc_lut_config *const config) |
Configure the lookup table (LUT) unit of GLOC. More... | |
void gloc_disable | ( | struct gloc_dev_inst *const | dev_inst | ) |
Disable the GLOC module.
dev_inst | Device structure pointer. |
References gloc_dev_inst::hw_dev, SLEEPMGR_SLEEP_0, sleepmgr_unlock_mode(), and sysclk_disable_peripheral_clock().
void gloc_enable | ( | struct gloc_dev_inst *const | dev_inst | ) |
Enable the GLOC module.
dev_inst | Device structure pointer. |
References CONFIG_GLOC_GENCLK_DIV, CONFIG_GLOC_GENCLK_SRC, genclk_config_defaults(), genclk_config_set_divider(), genclk_config_set_source(), genclk_enable(), genclk_enable_source(), gloc_dev_inst::hw_dev, sleepmgr_lock_mode(), SLEEPMGR_SLEEP_0, and sysclk_enable_peripheral_clock().
Referenced by main().
void gloc_init | ( | struct gloc_dev_inst *const | dev_inst, |
Gloc *const | gloc | ||
) |
Initialize the GLOC module.
dev_inst | Device structure pointer. |
gloc | Base address of the GLOC instance. |
References Assert, and gloc_dev_inst::hw_dev.
Referenced by main().
void gloc_lut_get_config_defaults | ( | struct gloc_lut_config *const | config | ) |
Get the default configuration for lookup table (LUT) unit of GLOC.
The default configuration is as follows:
config | Pointer to GLOC LUT configuration. |
References Assert, gloc_lut_config::filter, gloc_lut_config::input_mask, and gloc_lut_config::truth_table_value.
Referenced by run_gloc_4inputs_xor_test().
void gloc_lut_set_config | ( | struct gloc_dev_inst *const | dev_inst, |
uint32_t | lut_id, | ||
struct gloc_lut_config *const | config | ||
) |
Configure the lookup table (LUT) unit of GLOC.
dev_inst | Device structure pointer. |
lut_id | LUT ID. |
config | Pointer to GLOC LUT configuration. |
References gloc_lut_config::filter, gloc_dev_inst::hw_dev, gloc_lut_config::input_mask, and gloc_lut_config::truth_table_value.
Referenced by run_gloc_4inputs_xor_test().