rotaryo2 2.1.0.0
|
This file contains API for Rotary O 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 | rotaryo2_t |
Rotary O 2 Click context object. More... | |
struct | rotaryo2_cfg_t |
Rotary O 2 Click configuration object. More... | |
Enumerations | |
enum | rotaryo2_return_value_t { ROTARYO2_OK = 0 , ROTARYO2_ERROR = -1 } |
Rotary O 2 Click return value data. More... | |
Functions | |
void | rotaryo2_cfg_setup (rotaryo2_cfg_t *cfg) |
Rotary O 2 configuration object setup function. | |
err_t | rotaryo2_init (rotaryo2_t *ctx, rotaryo2_cfg_t *cfg) |
Rotary O 2 initialization function. | |
err_t | rotaryo2_default_cfg (rotaryo2_t *ctx) |
Rotary O 2 default configuration function. | |
err_t | rotaryo2_set_led_data (rotaryo2_t *ctx, uint16_t data_in) |
Rotary O 2 set LED data function. | |
err_t | rotaryo2_get_led_data (rotaryo2_t *ctx, uint16_t *data_out) |
Rotary O 2 get LED data function. | |
err_t | rotaryo2_set_led_pos (rotaryo2_t *ctx, uint8_t led_pos) |
Rotary O 2 set LED position function. | |
uint8_t | rotaryo2_get_state_switch (rotaryo2_t *ctx) |
Rotary O 2 get switch state function. | |
uint8_t | rotaryo2_get_state_ena (rotaryo2_t *ctx) |
Rotary O 2 get ena state function. | |
uint8_t | rotaryo2_get_state_enb (rotaryo2_t *ctx) |
Rotary O 2 get enb state function. | |
This file contains API for Rotary O 2 Click Driver.