3.2 CBG Driver

Overview

The Current Bias Generator (CBG) consists of two classes of current sources:

  • 10 uA Current Sources.
  • Selectable Current Sources from 30-200 uA.

Features

  • Simultaneous generation of 10uA and 50uA current source on dedicated output pins.
  • Enabling 10uA and 50uA current sources enable the corresponding output pin as well.

3.2.1 Module Documentation

3.2.1.1 CBG Driver

Current Bias Generator driver is to configure 10uA and other selectable current sources using dsPIC MCUs.

3.2.1.1.1 Module description

Current Bias Generator driver is to configure 10uA and other selectable current sources using dsPIC MCUs.

Data structures
  • struct CBG_INTERFACE

    Structure containing the function pointers of CBG driver.

Variables
  • const struct CBG_INTERFACE CBG

    Structure object of type CBG_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. CBG can be changed by the user in the CBG user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.

3.2.1.1.2 Function Documentation

CBG_Deinitialize()

void CBG_Deinitialize (void )

Deinitializes the CBG to POR values.

Parameters:
none
Returns:

none

CBG_Initialize()

void CBG_Initialize (void )

Initializes CBG module.

Parameters:
none
Returns:

none

3.2.1.1.3 Variable Documentation

CBG

const struct CBG_INTERFACE CBG

Structure object of type CBG_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. CBG can be changed by the user in the CBG user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.

3.2.2 Data Structure Documentation

3.2.2.1 CBG_INTERFACE Struct Reference

Structure containing the function pointers of CBG driver.

3.2.2.1.2 Field Documentation

The documentation for this struct was generated from the following file:

source/

cbg_interface.h

3.2.3 File Documentation

3.2.3.1 source/cbg.h File Reference

This is the generated driver header file for the CBG driver.

#include <xc.h>
#include "cbg_interface.h"

3.2.3.1.2 Variables

  • const struct CBG_INTERFACE CBG

    Structure object of type CBG_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. CBG can be changed by the user in the CBG user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.

3.2.3.1.3 Detailed Description

This is the generated driver header file for the CBG driver.

CBG Generated Driver Header File

3.2.3.2 source/cbg_interface.h File Reference

3.2.3.2.1 Data structures

  • struct CBG_INTERFACE

    Structure containing the function pointers of CBG driver.

3.2.3.2.2 Detailed Description

CBG Generated Driver Interface Header File