fan3 2.0.0.0
|
This file contains API for Fan 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | fan3_t |
Click ctx object definition. More... | |
struct | fan3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FAN3_MAP_MIKROBUS(cfg, mikrobus) |
#define | FAN3_RETVAL uint8_t |
#define | FAN3_OK 0x00 |
#define | FAN3_INIT_ERROR 0xFF |
#define | FAN3_STOPPED 0x00 |
#define | FAN3_SPEED1 0x01 |
#define | FAN3_SPEED2 0x02 |
#define | FAN3_SPEED3 0x03 |
#define | FAN3_SPEED4 0x04 |
#define | FAN3_SPEED5 0x05 |
#define | FAN3_SPEED6 0x06 |
#define | FAN3_SPEED7 0x07 |
Functions | |
void | fan3_cfg_setup (fan3_cfg_t *cfg) |
Config Object Initialization function. | |
FAN3_RETVAL | fan3_init (fan3_t *ctx, fan3_cfg_t *cfg) |
Initialization function. | |
void | fan3_generic_write (fan3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | fan3_generic_read (fan3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | fan3_set_speed (fan3_t *ctx, uint8_t new_speed) |
Set speed. | |
This file contains API for Fan 3 Click driver.