joystick4
2.1.0.0
|
This file contains API for Joystick 4 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 | joystick4_t |
Joystick 4 Click context object. More... | |
struct | joystick4_cfg_t |
Joystick 4 Click configuration object. More... | |
Enumerations | |
enum | joystick4_return_value_t { JOYSTICK4_OK = 0, JOYSTICK4_ERROR = -1 } |
Joystick 4 Click return value data. More... | |
Functions | |
void | joystick4_cfg_setup (joystick4_cfg_t *cfg) |
Joystick 4 configuration object setup function. More... | |
err_t | joystick4_init (joystick4_t *ctx, joystick4_cfg_t *cfg) |
Joystick 4 initialization function. More... | |
err_t | joystick4_default_cfg (joystick4_t *ctx) |
Joystick 4 default configuration function. More... | |
err_t | joystick4_write_reg (joystick4_t *ctx, uint8_t reg, uint8_t data_in) |
Joystick 4 write reg function. More... | |
err_t | joystick4_read_reg (joystick4_t *ctx, uint8_t reg, uint8_t *data_out) |
Joystick 4 read reg function. More... | |
void | joystick4_reset_device (joystick4_t *ctx) |
Joystick 4 reset device function. More... | |
void | joystick4_set_rst_pin (joystick4_t *ctx, uint8_t state) |
Joystick 4 set RST pin function. More... | |
uint8_t | joystick4_get_int_pin (joystick4_t *ctx) |
Joystick 4 get INT pin function. More... | |
err_t | joystick4_get_pins (joystick4_t *ctx, uint8_t *pin_mask) |
Joystick 4 get pins function. More... | |
uint8_t | joystick4_get_position (uint8_t pin_mask) |
Joystick 4 get position function. More... | |
This file contains API for Joystick 4 Click Driver.