joystick3 2.1.0.0
|
This file contains API for Joystick 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | joystick3_t |
Joystick 3 Click context object. More... | |
struct | joystick3_cfg_t |
Joystick 3 Click configuration object. More... | |
Enumerations | |
enum | joystick3_return_value_t { JOYSTICK3_OK = 0 , JOYSTICK3_ERROR = -1 } |
Joystick 3 Click return value data. More... | |
Functions | |
void | joystick3_cfg_setup (joystick3_cfg_t *cfg) |
Joystick 3 configuration object setup function. | |
err_t | joystick3_init (joystick3_t *ctx, joystick3_cfg_t *cfg) |
Joystick 3 initialization function. | |
err_t | joystick3_read_raw_adc (joystick3_t *ctx, uint16_t *raw_x, uint16_t *raw_y) |
Joystick 3 read raw adc function. | |
float | joystick3_get_angle (uint16_t raw_x, uint16_t raw_y) |
Joystick 3 get angle function. | |
uint8_t | joystick3_get_position (uint16_t raw_x, uint16_t raw_y) |
Joystick 3 get position function. | |
This file contains API for Joystick 3 Click Driver.