knob 2.0.0.0
|
This file contains API for Knob 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 | knob_t |
Click ctx object definition. More... | |
struct | knob_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | knob_cfg_setup (knob_cfg_t *cfg) |
Config Object Initialization function. | |
KNOB_RETVAL | knob_init (knob_t *ctx, knob_cfg_t *cfg) |
Initialization function. | |
void | knob_default_cfg (knob_t *ctx) |
Click Default Configuration function. | |
void | knob_generic_write (knob_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | knob_generic_read (knob_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | knob_reset (knob_t *ctx) |
Functions for reset device. | |
void | knob_led_output_enable (knob_t *ctx, uint8_t state) |
Functions for enable Led Output. | |
uint8_t | knob_get_ena_state (knob_t *ctx) |
Functions for get ENA pin state. | |
uint8_t | knob_get_enb_state (knob_t *ctx) |
Functions for get ENB pin state. | |
uint8_t | knob_get_sw_button_state (knob_t *ctx) |
Functions for get SW pin(switch button) state. | |
void | knob_set_encoder_start_position (knob_t *ctx, int32_t position) |
Functions for set new start encoder position. | |
void | knob_set_led_state (knob_t *ctx, uint8_t led, uint8_t state) |
Functions for set led state(PWM on the LED) | |
void | knob_set_brightness (knob_t *ctx, uint8_t led, uint8_t value) |
Functions for set Brightness. | |
void | knob_set_output_gain (knob_t *ctx, uint8_t led, uint8_t value) |
Functions for set output GAIN. | |
void | knob_get_encoder_position (knob_t *ctx, int32_t *position, uint8_t *dir) |
Functions for get Encoder position. | |
This file contains API for Knob Click driver.