rotaryb2 2.1.0.0
|
This file contains API for Rotary B 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 | rotaryb2_t |
Rotary B 2 Click context object. More... | |
struct | rotaryb2_cfg_t |
Rotary B 2 Click configuration object. More... | |
Enumerations | |
enum | rotaryb2_return_value_t { ROTARYB2_OK = 0 , ROTARYB2_ERROR = -1 } |
Rotary B 2 Click return value data. More... | |
Functions | |
void | rotaryb2_cfg_setup (rotaryb2_cfg_t *cfg) |
Rotary B 2 configuration object setup function. | |
err_t | rotaryb2_init (rotaryb2_t *ctx, rotaryb2_cfg_t *cfg) |
Rotary B 2 initialization function. | |
err_t | rotaryb2_default_cfg (rotaryb2_t *ctx) |
Rotary B 2 default configuration function. | |
err_t | rotaryb2_set_led_data (rotaryb2_t *ctx, uint16_t data_in) |
Rotary B 2 set LED data function. | |
err_t | rotaryb2_get_led_data (rotaryb2_t *ctx, uint16_t *data_out) |
Rotary B 2 get LED data function. | |
err_t | rotaryb2_set_led_pos (rotaryb2_t *ctx, uint8_t led_pos) |
Rotary B 2 set LED position function. | |
uint8_t | rotaryb2_get_state_switch (rotaryb2_t *ctx) |
Rotary B 2 get switch state function. | |
uint8_t | rotaryb2_get_state_ena (rotaryb2_t *ctx) |
Rotary B 2 get ena state function. | |
uint8_t | rotaryb2_get_state_enb (rotaryb2_t *ctx) |
Rotary B 2 get enb state function. | |
This file contains API for Rotary B 2 Click Driver.