rotaryr2 2.1.0.0
|
This file contains API for Rotary R 2 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 | rotaryr2_t |
Rotary R 2 Click context object. More... | |
struct | rotaryr2_cfg_t |
Rotary R 2 Click configuration object. More... | |
Enumerations | |
enum | rotaryr2_return_value_t { ROTARYR2_OK = 0 , ROTARYR2_ERROR = -1 } |
Rotary R 2 Click return value data. More... | |
Functions | |
void | rotaryr2_cfg_setup (rotaryr2_cfg_t *cfg) |
Rotary R 2 configuration object setup function. | |
err_t | rotaryr2_init (rotaryr2_t *ctx, rotaryr2_cfg_t *cfg) |
Rotary R 2 initialization function. | |
err_t | rotaryr2_default_cfg (rotaryr2_t *ctx) |
Rotary R 2 default configuration function. | |
err_t | rotaryr2_set_led_data (rotaryr2_t *ctx, uint16_t data_in) |
Rotary R 2 set LED data function. | |
err_t | rotaryr2_get_led_data (rotaryr2_t *ctx, uint16_t *data_out) |
Rotary R 2 get LED data function. | |
err_t | rotaryr2_set_led_pos (rotaryr2_t *ctx, uint8_t led_pos) |
Rotary R 2 set LED position function. | |
uint8_t | rotaryr2_get_state_switch (rotaryr2_t *ctx) |
Rotary R 2 get switch state function. | |
uint8_t | rotaryr2_get_state_ena (rotaryr2_t *ctx) |
Rotary R 2 get ena state function. | |
uint8_t | rotaryr2_get_state_enb (rotaryr2_t *ctx) |
Rotary R 2 get enb state function. | |
This file contains API for Rotary R 2 Click Driver.