swipeswitch 2.0.0.0
|
This file contains API for SwipeSwitch Click driver. More...
#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 | swipeswitch_t |
Click ctx object definition. More... | |
struct | swipeswitch_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | swipeswitch_cfg_setup (swipeswitch_cfg_t *cfg) |
Config Object Initialization function. | |
SWIPESWITCH_RETVAL | swipeswitch_init (swipeswitch_t *ctx, swipeswitch_cfg_t *cfg) |
Initialization function. | |
void | swipeswitch_generic_write (swipeswitch_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | swipeswitch_generic_read (swipeswitch_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | swipeswitch_wait_for_ready (swipeswitch_t *ctx) |
Function that waits for the module to be ready for operation. | |
void | swipeswitch_disable_halt_timeout (swipeswitch_t *ctx) |
Function for disable halt time. | |
void | swipeswitch_disable_events (swipeswitch_t *ctx, uint8_t event) |
Function for disabled Event. | |
void | swipeswitch_enable_events (swipeswitch_t *ctx, uint8_t event) |
Function for enabled Event. | |
void | swipeswitch_go_to_event_mode (swipeswitch_t *ctx) |
Function for Event mode. | |
void | swipeswitch_go_to_stream_mode (swipeswitch_t *ctx) |
Function for Stream mode. | |
uint8_t | swipeswitch_read_system_flags (swipeswitch_t *ctx) |
Function for reads system falgs. | |
uint8_t | swipeswitch_read_events (swipeswitch_t *ctx) |
Function for reading event. | |
uint8_t | swipeswitch_read_gestures (swipeswitch_t *ctx) |
Function for reading Gestures. | |
uint8_t | swipeswitch_read_trackpad_flags (swipeswitch_t *ctx) |
Function for reading Trackpad falgs. | |
uint8_t | swipeswitch_read_prox_byte (swipeswitch_t *ctx) |
Function for reading Prox byte. | |
uint8_t | swipeswitch_read_touch_byte (swipeswitch_t *ctx) |
Function for reading Touch byte. | |
uint8_t | swipeswitch_read_x_coordinate (swipeswitch_t *ctx) |
Function for reading X coordinate. | |
uint8_t | swipeswitch_read_y_coordinate (swipeswitch_t *ctx) |
Function for reading Y coordinate. | |
void | swipeswitch_set_touch_sensitivity (swipeswitch_t *ctx, uint8_t sensitivity) |
Function for setting Touch Sensitivity. | |
void | swipeswitch_set_prox_sensitivity (swipeswitch_t *ctx, uint8_t sensitivity) |
Function for setting Prox Sensitivity. | |
void | swipeswitch_set_event_mask (swipeswitch_t *ctx, uint8_t event_mask) |
Function for setting Event mask. | |
void | swipeswitch_enable_channel (swipeswitch_t *ctx, uint8_t channel) |
Function for enabling channels. | |
void | swipeswitch_disable_channel (swipeswitch_t *ctx, uint8_t channel) |
Function for disabling channels. | |
uint16_t | swipeswitch_read_channel (swipeswitch_t *ctx, uint8_t read_data, uint8_t channel) |
Function for reading channel. | |
void | swipeswitch_set_tap_timer_limit (swipeswitch_t *ctx, uint8_t time_limit) |
Function for setting tap timer limit. | |
void | swipeswitch_set_tap_threshold (swipeswitch_t *ctx, uint8_t threshold) |
Function for setting tap threshold. | |
void | swipeswitch_set_swipe_timer_limit (swipeswitch_t *ctx, uint8_t time_limit) |
Function for setting swipe timer limit. | |
void | swipeswitch_set_swipe_threshold (swipeswitch_t *ctx, uint8_t threshold) |
Function for setting swipe threshold. | |
void | swipeswitch_set_report_rate_nm (swipeswitch_t *ctx, uint8_t report_rate) |
Function for setting report rate NM. | |
void | swipeswitch_set_report_rate_lp (swipeswitch_t *ctx, uint8_t report_rate) |
Function for setting report rate LP. | |
void | swipeswitch_set_np_segment_rate (swipeswitch_t *ctx, uint8_t segment_rate) |
Function for setting segment rate. | |
void | swipeswitch_set_zoom_timeout (swipeswitch_t *ctx, uint8_t timeout_period) |
Function for setting zoom timeout. | |
void | swipeswitch_set_halt_timeout (swipeswitch_t *ctx, uint8_t halt_time) |
Function for setting halt timeout. | |
This file contains API for SwipeSwitch Click driver.