Functions
Functions
Peripheral Driver » APP DRIVER » COMP
Collaboration diagram for Functions:

## Functions
uint16_t | app_comp_init (app_comp_params_t *p_params, app_comp_evt_handler_t evt_handler)
| Initialize the APP COMP DRIVER according to the specified parameters in the app_comp_params_t and app_comp_evt_handler_t. More...
uint16_t | app_comp_deinit (void)
| De-initialize the APP COMP DRIVER peripheral. More...
uint16_t | app_comp_start (void)
| Start the comparator. More...
uint16_t | app_comp_stop (void)
| Stop the comparator. More...
comp_handle_t * | app_comp_get_handle (void)
| Return the COMP handle. More...

## Detailed Description

## Function Documentation

## ◆ app_comp_deinit()

uint16_t app_comp_deinit | ( | void |  | ) |

De-initialize the APP COMP DRIVER peripheral.

Returns
  Result of De-initialization.

## ◆ app_comp_get_handle()

comp_handle_t* app_comp_get_handle | ( | void |  | ) |

Return the COMP handle.

Returns
  Pointer to the COMP handle.

## ◆ app_comp_init()

uint16_t app_comp_init | ( | app_comp_params_t * | p_params,
|  | app_comp_evt_handler_t | evt_handler
| ) |  |

Initialize the APP COMP DRIVER according to the specified parameters in the app_comp_params_t and app_comp_evt_handler_t.

Parameters

  [in] | p_params | Pointer to app_comp_params_t parameter which contains the configuration information for the specified COMP module.
  [in] | evt_handler | COMP user callback function.

Returns
  Result of initialization.

## ◆ app_comp_start()

uint16_t app_comp_start | ( | void |  | ) |

Start the comparator.

Returns
  Result of initialization.

## ◆ app_comp_stop()

uint16_t app_comp_stop | ( | void |  | ) |

Stop the comparator.

Returns
  Result of initialization.