irreflect 2.0.0.0
|
Functions | |
void | irreflect_cfg_setup (irreflect_cfg_t *cfg) |
Config Object Initialization function. | |
IRREFLECT_RETVAL | irreflect_init (irreflect_t *ctx, irreflect_cfg_t *cfg) |
Initialization function. | |
uint8_t | irreflect_reflect_status (irreflect_t *ctx) |
Detecting interrupt states of IR reflection from GP2S700HCP reflective photointerrupter sensor. | |
uint8_t | irreflect_analog_status (irreflect_t *ctx) |
Detecting states of analog pin of IR reflection from GP2S700HCP reflective photointerrupter sensor. | |
uint8_t irreflect_analog_status | ( | irreflect_t * | ctx | ) |
Detecting states of analog pin of IR reflection from GP2S700HCP reflective photointerrupter sensor.
ctx | Click object. |
@description Function detecting states of analog pin of IR reflection from GP2S700HCP reflective photointerrupter sensor and returns the state of the AN pin.
void irreflect_cfg_setup | ( | irreflect_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
IRREFLECT_RETVAL irreflect_init | ( | irreflect_t * | ctx, |
irreflect_cfg_t * | cfg ) |
Initialization function.
irreflect | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t irreflect_reflect_status | ( | irreflect_t * | ctx | ) |
Detecting interrupt states of IR reflection from GP2S700HCP reflective photointerrupter sensor.
ctx | Click object. |
@description Function detecting interrupt states of IR reflection from GP2S700HCP reflective photointerrupter sensor and returns the state of the INT pin.