fan8 2.0.0.0
|
This file contains API for FAN 8 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 | fan8_t |
FAN 8 Click context object. More... | |
struct | fan8_cfg_t |
FAN 8 Click configuration object. More... | |
Enumerations | |
enum | fan8_return_value_t { FAN8_OK = 0 , FAN8_ERROR = -1 } |
FAN 8 Click return value data. More... | |
Functions | |
void | fan8_cfg_setup (fan8_cfg_t *cfg) |
FAN 8 configuration object setup function. | |
err_t | fan8_init (fan8_t *ctx, fan8_cfg_t *cfg) |
FAN 8 initialization function. | |
err_t | fan8_default_cfg (fan8_t *ctx) |
FAN 8 default configuration function. | |
err_t | fan8_write_register (fan8_t *ctx, uint8_t reg, uint8_t data_in) |
FAN 8 write register function. | |
err_t | fan8_read_register (fan8_t *ctx, uint8_t reg, uint8_t *data_out) |
FAN 8 read register function. | |
uint8_t | fan8_check_overtemperature_indicator (fan8_t *ctx) |
FAN 8 check overtemperature indicator function. | |
uint8_t | fan8_check_fan_fail_indicator (fan8_t *ctx) |
FAN 8 check fan fail indicator function. | |
uint8_t | fan8_check_fault_indicator (fan8_t *ctx) |
FAN 8 check fault indicator function. | |
err_t | fan8_check_device_id (fan8_t *ctx) |
FAN 8 check device ID function. | |
err_t | fan8_set_duty_cycle (fan8_t *ctx, uint8_t fan_ch, uint8_t duty_cycle) |
FAN 8 set duty cycle function. | |
err_t | fan8_measure_rpm (fan8_t *ctx, uint8_t fan_ch, uint8_t num_pulses, uint16_t *fan_rpm) |
FAN 8 measure fan RPM function. | |
err_t | fan8_read_temperature (fan8_t *ctx, uint8_t temp_ch, float *temperature) |
FAN 8 read temperature function. | |
err_t | fan8_reset (fan8_t *ctx) |
FAN 8 reset function. | |
This file contains API for FAN 8 Click Driver.
enum fan8_return_value_t |