Jump to main content

##

# 2.9.1 CBG_Deinitialize Function

## C

    void CBG_Deinitialize(void);

## Summary

Deinitializes the CBG peripheral of the device.

## Description

This function deinitializes the CBG Peripheral Library (PLIB) of the device, returning the CBG peripheral to its default reset state. After calling this function, the CBG peripheral will no longer be operational.

## Precondition

The CBG peripheral must have been initialized using the CBG_Initialize API. This function should be called when the CBG peripheral is no longer required to release resources and ensure proper reset behavior.

## Parameters

None.

## Returns

None.

## Example

    CBG_Initialize();
    Perform CBG operations here
    CBG_Deinitialize();

## Remarks

None.