fan6 2.0.0.0
|
This file contains API for Fan 6 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 | fan6_t |
Click ctx object definition. More... | |
struct | fan6_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | fan6_cfg_setup (fan6_cfg_t *cfg) |
Config Object Initialization function. | |
FAN6_RETVAL | fan6_init (fan6_t *ctx, fan6_cfg_t *cfg) |
Initialization function. | |
void | fan6_default_cfg (fan6_t *ctx) |
Click Default Configuration function. | |
void | fan6_generic_write (fan6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | fan6_generic_read (fan6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | fan6_write_reg (fan6_t *ctx, const uint8_t register_address, const uint16_t transfer_data) |
Generic write function. | |
uint16_t | fan6_read_reg (fan6_t *ctx, const uint8_t register_address) |
Generic read function. | |
uint8_t | fan6_receive_byte (fan6_t *ctx, const uint8_t register_address) |
Byte receive function. | |
void | fan6_read_eeprom (fan6_t *ctx, uint8_t *data_out) |
EEPROM read function. | |
void | fan6_set_pwm_mode (fan6_t *ctx, const uint8_t pwm_duty) |
PWM mode set function. | |
void | fan6_set_fan_speed_con_mode (fan6_t *ctx, const uint8_t minimum_drive, const uint8_t tach_count, const uint16_t tach_target) |
Fan Speed Control Mode Set function. | |
void | fan6_set_pwm_lut_mode (fan6_t *ctx, const uint8_t tach_count) |
Set PWM With LUT Mode function. | |
void | fan6_set_fsc_lut_mode (fan6_t *ctx, const uint8_t minimum_drive, const uint8_t tach_count) |
Set FSC With LUT Mode function. | |
uint32_t | fan6_read_tachometer (fan6_t *ctx) |
Tachometer Read function. | |
float | fan6_get_temperature (fan6_t *ctx, const uint8_t temp_address) |
Temperature Get function. | |
void | fan6_push_temperature (fan6_t *ctx, const uint8_t temp_address, const uint8_t temp_selection) |
Temperature Push function. | |
void | fan6_enable_device (fan6_t *ctx, const uint8_t state) |
Device Enable function. | |
uint8_t | fan6_indicate_critical_thermal_shutdown (fan6_t *ctx) |
Interrupt Pin Get function. | |
uint8_t | fan6_get_gpio_2 (fan6_t *ctx) |
GPIO 2 Get function. | |
void | fan6_set_gpio_1 (fan6_t *ctx, const uint8_t state) |
GPIO 1 Set function. | |
This file contains API for Fan 6 Click driver.