irgesture
2.0.0.0
|
This file contains API for IR Gesture Click driver. More...
#include "mikrosdk_version.h"
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | irgesture_t |
Click ctx object definition. More... | |
struct | irgesture_cfg_t |
Click configuration structure definition. More... | |
struct | gesture_data_t |
Container for gesture data. More... | |
Enumerations | |
enum | gesture_prox_t { NA_STATE, NEAR_STATE, FAR_STATE, ALL_STATE } |
enum | gesture_dir_t { DIR_NONE, DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_DOWN, DIR_NEAR, DIR_FAR, DIR_ALL } |
Direction definitions. More... | |
Functions | |
void | irgesture_cfg_setup (irgesture_cfg_t *cfg) |
Config Object Initialization function. More... | |
IRGESTURE_RETVAL | irgesture_init (irgesture_t *ctx, irgesture_cfg_t *cfg) |
Initialization function. More... | |
void | irgesture_default_cfg (irgesture_t *ctx) |
Click Default Configuration function. More... | |
void | irgesture_write_data (irgesture_t *ctx, uint8_t reg_addr, uint8_t write_data) |
Write function. More... | |
uint8_t | irgesture_read_data (irgesture_t *ctx, uint8_t reg_addr) |
Read function. More... | |
uint8_t | irgesture_get_interrupt (irgesture_t *ctx) |
Get state of interrupt pin function. More... | |
gesture_dir_t | irgesture_gesture_read_gesture (irgesture_t *ctx) |
Processes a gesture event function. More... | |
void | irgesture_set_gesture_mode (irgesture_t *ctx) |
Sets the gesture mode function. More... | |
void | irgesture_enable_power (irgesture_t *ctx) |
Enable power sensor function. More... | |
void | irgesture_disable_power (irgesture_t *ctx) |
Disable power sensor function. More... | |
void | irgesture_set_ambient_light_gain (irgesture_t *ctx, uint8_t gain_val) |
Set gain for ambient light function. More... | |
uint8_t | irgesture_get_ambient_light_gain (irgesture_t *ctx) |
Get gain for ambient light function. More... | |
void | irgesture_enable_light_sensor (irgesture_t *ctx) |
Enable specific ambient light sensors function. More... | |
void | irgesture_disable_light_sensor (irgesture_t *ctx) |
Disable specific ambient light sensors function. More... | |
uint16_t | irgesture_read_ambient_light (irgesture_t *ctx) |
Read ambient light data function. More... | |
uint16_t | irgesture_read_red_light (irgesture_t *ctx) |
Read RED light data function. More... | |
uint16_t | irgesture_read_green_light (irgesture_t *ctx) |
Read GREEN light data function. More... | |
uint16_t | irgesture_read_blue_light (irgesture_t *ctx) |
Read BLUE light data function. More... | |
void | irgesture_set_led_boost (irgesture_t *ctx, uint8_t boost) |
Sets the LED current boost value function. More... | |
uint8_t | irgesture_get_led_boost (irgesture_t *ctx) |
Gets the LED current boost value function. More... | |
uint8_t | irgesture_available (irgesture_t *ctx) |
Determines if there is a gesture available function. More... | |
void | irgesture_set_gesture_gain (irgesture_t *ctx, uint8_t gain_val) |
Set gain for gesture function. More... | |
uint8_t | irgesture_get_gesture_gain (irgesture_t *ctx) |
Get gain for gesture function. More... | |
void | irgesture_enable_gesture_sensor (irgesture_t *ctx) |
Starts the gesture recognition engine function. More... | |
void | irgesture_disable_gesture_sensor (irgesture_t *ctx) |
Disable the gesture recognition engine function. More... | |
uint8_t | irgesture_detect_gesture (irgesture_t *ctx) |
Function decode a gesture event function. More... | |
void | irgesture_set_proximity_gain (irgesture_t *ctx, uint8_t gain_val) |
Set gain for proximity function. More... | |
uint8_t | irgesture_get_proximity_gain (irgesture_t *ctx) |
Get gain for proximity function. More... | |
void | irgesture_enable_proximity_sensor (irgesture_t *ctx) |
Enable specific proximity sensors function. More... | |
void | irgesture_disable_proximity_sensor (irgesture_t *ctx) |
Disable specific proximity sensors function. More... | |
uint8_t | irgesture_get_proxy_photo_mask (irgesture_t *ctx) |
Get the current mask for enabled/disabled proximity photodiodes function. More... | |
void | irgesture_set_proxy_photo_mask (irgesture_t *ctx, uint8_t mask) |
Get the current mask for enabled/disabled proximity photodiodes function. More... | |
uint8_t | irgesture_read_proximity_data (irgesture_t *ctx) |
Read proximity data function. More... | |
This file contains API for IR Gesture Click driver.