rotaryw2 2.1.0.0
|
This file contains API for Rotary W 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 | rotaryw2_t |
Rotary W 2 Click context object. More... | |
struct | rotaryw2_cfg_t |
Rotary W 2 Click configuration object. More... | |
Enumerations | |
enum | rotaryw2_return_value_t { ROTARYW2_OK = 0 , ROTARYW2_ERROR = -1 } |
Rotary W 2 Click return value data. More... | |
Functions | |
void | rotaryw2_cfg_setup (rotaryw2_cfg_t *cfg) |
Rotary W 2 configuration object setup function. | |
err_t | rotaryw2_init (rotaryw2_t *ctx, rotaryw2_cfg_t *cfg) |
Rotary W 2 initialization function. | |
err_t | rotaryw2_default_cfg (rotaryw2_t *ctx) |
Rotary W 2 default configuration function. | |
err_t | rotaryw2_set_led_data (rotaryw2_t *ctx, uint16_t data_in) |
Rotary W 2 set LED data function. | |
err_t | rotaryw2_get_led_data (rotaryw2_t *ctx, uint16_t *data_out) |
Rotary W 2 get LED data function. | |
err_t | rotaryw2_set_led_pos (rotaryw2_t *ctx, uint8_t led_pos) |
Rotary W 2 set LED position function. | |
uint8_t | rotaryw2_get_state_switch (rotaryw2_t *ctx) |
Rotary W 2 get switch state function. | |
uint8_t | rotaryw2_get_state_ena (rotaryw2_t *ctx) |
Rotary W 2 get ena state function. | |
uint8_t | rotaryw2_get_state_enb (rotaryw2_t *ctx) |
Rotary W 2 get enb state function. | |
This file contains API for Rotary W 2 Click Driver.