Analog Glue Function

This custom analog driver offers a way to initialize on-chip programmable analog units, such as Operational Amplifiers (OPAMP), so that a specific analog circuit is built. Then this analog "circuit" can be connected to internal or external analog circuit to perform analog signal processing.

Summary of the API's Functional Features

The API provides functions to:
  • Initialize and deinitialize the driver and associated hardware

  • Enabling and disabling

Summary of Configuration Options

Most custom analog driver parameters are configured in START. Many of these parameters are used by the custom_analog_init function when initializing the driver and underlying hardware (for example, OPAMP).

Driver Implementation Description

The implementation is simple in this driver and most custom analog parameters are static configuration.

Example of Usage

The following shows a simple example of using the custom analog driver. The custom analog driver must have been initialized by custom_analog_init. This initialization will configure the operation of the hardware programmable analog instance.

          /**
           * Example of using ANALOG_GLUE_FUNCTION_0 to generate waveform.
           */
          void ANALOG_GLUE_FUNCTION_0_example(void)
          {
              custom_analog_enable();
              /* Now custom analog (operational amplifiers) works as configured */
          }
        

Dependencies

  • On-chip programmable analog units, such as Operational Amplifiers (OPAMP)