comparator 2.0.0.0
|
Functions | |
void | comparator_cfg_setup (comparator_cfg_t *cfg) |
Config Object Initialization function. | |
COMPARATOR_RETVAL | comparator_init (comparator_t *ctx, comparator_cfg_t *cfg) |
Initialization function. | |
uint8_t | comparator_check_output_one (comparator_t *ctx) |
Check state of the o1 pin function. | |
uint8_t | comparator_check_output_two (comparator_t *ctx) |
Check state of the o2 pin function. | |
void comparator_cfg_setup | ( | comparator_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t comparator_check_output_one | ( | comparator_t * | ctx | ) |
Check state of the o1 pin function.
ctx | Click object. |
- 0 : Low; - 1 : High;
@description This function check and return state of the o1 ( AN ) pin of Comparator Click Board.
uint8_t comparator_check_output_two | ( | comparator_t * | ctx | ) |
Check state of the o2 pin function.
ctx | Click object. |
- 0 : Low; - 1 : High;
@description This function check and return state of the o2 ( INT ) pin of Comparator Click Board.
COMPARATOR_RETVAL comparator_init | ( | comparator_t * | ctx, |
comparator_cfg_t * | cfg ) |
Initialization function.
comparator | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.