swipeswitch 2.0.0.0
|
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. | |
void swipeswitch_cfg_setup | ( | swipeswitch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void swipeswitch_disable_channel | ( | swipeswitch_t * | ctx, |
uint8_t | channel ) |
Function for disabling channels.
ctx | Click object. |
@description This function disable channels.
void swipeswitch_disable_events | ( | swipeswitch_t * | ctx, |
uint8_t | event ) |
Function for disabled Event.
ctx | Click object. |
@description This function disable desired event.
void swipeswitch_disable_halt_timeout | ( | swipeswitch_t * | ctx | ) |
Function for disable halt time.
ctx | Click object. |
@description This function disable halt time
void swipeswitch_enable_channel | ( | swipeswitch_t * | ctx, |
uint8_t | channel ) |
Function for enabling channels.
ctx | Click object. |
@description This function enable channels.
void swipeswitch_enable_events | ( | swipeswitch_t * | ctx, |
uint8_t | event ) |
Function for enabled Event.
ctx | Click object. |
@description This function anable desired event.
void swipeswitch_generic_read | ( | swipeswitch_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void swipeswitch_generic_write | ( | swipeswitch_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
void swipeswitch_go_to_event_mode | ( | swipeswitch_t * | ctx | ) |
Function for Event mode.
ctx | Click object. |
@description This function is for going to Event mode.
void swipeswitch_go_to_stream_mode | ( | swipeswitch_t * | ctx | ) |
Function for Stream mode.
ctx | Click object. |
@description This function is for going to Stream mode.
SWIPESWITCH_RETVAL swipeswitch_init | ( | swipeswitch_t * | ctx, |
swipeswitch_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t swipeswitch_read_channel | ( | swipeswitch_t * | ctx, |
uint8_t | read_data, | ||
uint8_t | channel ) |
Function for reading channel.
ctx | Click object. |
uint8_t swipeswitch_read_events | ( | swipeswitch_t * | ctx | ) |
Function for reading event.
ctx | Click object. |
@description This function reads event.
uint8_t swipeswitch_read_gestures | ( | swipeswitch_t * | ctx | ) |
Function for reading Gestures.
ctx | Click object. returns Gesture value. |
@description This function reads Gestures.
uint8_t swipeswitch_read_prox_byte | ( | swipeswitch_t * | ctx | ) |
Function for reading Prox byte.
ctx | Click object. |
@description This function reads Prox byte.
uint8_t swipeswitch_read_system_flags | ( | swipeswitch_t * | ctx | ) |
Function for reads system falgs.
ctx | Click object. |
@description This function reads system falgs.
uint8_t swipeswitch_read_touch_byte | ( | swipeswitch_t * | ctx | ) |
Function for reading Touch byte.
ctx | Click object. |
@description This function reads Touch byte.
uint8_t swipeswitch_read_trackpad_flags | ( | swipeswitch_t * | ctx | ) |
Function for reading Trackpad falgs.
ctx | Click object. |
@description This function reads Trackpad flag.
uint8_t swipeswitch_read_x_coordinate | ( | swipeswitch_t * | ctx | ) |
Function for reading X coordinate.
ctx | Click object. |
uint8_t swipeswitch_read_y_coordinate | ( | swipeswitch_t * | ctx | ) |
Function for reading Y coordinate.
ctx | Click object. |
void swipeswitch_set_event_mask | ( | swipeswitch_t * | ctx, |
uint8_t | event_mask ) |
Function for setting Event mask.
ctx | Click object. |
@description This function set Event mask.
void swipeswitch_set_halt_timeout | ( | swipeswitch_t * | ctx, |
uint8_t | halt_time ) |
Function for setting halt timeout.
ctx | Click object. |
@description This function sets halt timeout.
void swipeswitch_set_np_segment_rate | ( | swipeswitch_t * | ctx, |
uint8_t | segment_rate ) |
Function for setting segment rate.
ctx | Click object. |
@description This function sets segment rate.
void swipeswitch_set_prox_sensitivity | ( | swipeswitch_t * | ctx, |
uint8_t | sensitivity ) |
Function for setting Prox Sensitivity.
ctx | Click object. |
@description This function set Prox Sensitivity.
void swipeswitch_set_report_rate_lp | ( | swipeswitch_t * | ctx, |
uint8_t | report_rate ) |
Function for setting report rate LP.
ctx | Click object. |
@description This function sets LP report rate.
void swipeswitch_set_report_rate_nm | ( | swipeswitch_t * | ctx, |
uint8_t | report_rate ) |
Function for setting report rate NM.
ctx | Click object. |
@description This function sets NM report rate.
void swipeswitch_set_swipe_threshold | ( | swipeswitch_t * | ctx, |
uint8_t | threshold ) |
Function for setting swipe threshold.
ctx | Click object. |
@description This function sets swipe threshold.
void swipeswitch_set_swipe_timer_limit | ( | swipeswitch_t * | ctx, |
uint8_t | time_limit ) |
Function for setting swipe timer limit.
ctx | Click object. |
@description This function sets swipe timer limit.
void swipeswitch_set_tap_threshold | ( | swipeswitch_t * | ctx, |
uint8_t | threshold ) |
Function for setting tap threshold.
ctx | Click object. |
@description This function sets tap threshold.
void swipeswitch_set_tap_timer_limit | ( | swipeswitch_t * | ctx, |
uint8_t | time_limit ) |
Function for setting tap timer limit.
ctx | Click object. |
@description This function sets tap timer limit.
void swipeswitch_set_touch_sensitivity | ( | swipeswitch_t * | ctx, |
uint8_t | sensitivity ) |
Function for setting Touch Sensitivity.
ctx | Click object. |
@description This function set Touch Sensitivity.
void swipeswitch_set_zoom_timeout | ( | swipeswitch_t * | ctx, |
uint8_t | timeout_period ) |
Function for setting zoom timeout.
ctx | Click object. |
@description This function sets zoom timeout.
uint8_t swipeswitch_wait_for_ready | ( | swipeswitch_t * | ctx | ) |
Function that waits for the module to be ready for operation.
ctx | Click object. |
@description This function waits for the module to be ready for operation