Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Glue Logic Controller (GLOC)

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.

Modules

 
 Quick Start Guide(s)
 In this section you can find a list of all Quick Start guides related to the Glue Logic Controller (GLOC).
 

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.

Parameters
dev_instDevice 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)
void gloc_init ( struct gloc_dev_inst *const  dev_inst,
Gloc *const  gloc 
)

Initialize the GLOC module.

Parameters
dev_instDevice structure pointer.
glocBase 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:

  • Filter: enable
  • Input mask: 0xF, all four inputs are enabled
  • Truth table value: 0x00
Parameters
configPointer 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.

Parameters
dev_instDevice structure pointer.
lut_idLUT ID.
configPointer 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().