fan 2.0.0.0
|
Fan Click Example. More...
Macros | |
#define | FAN_DUTY_RATIO_0_PER 0 |
#define | FAN_DUTY_RATIO_10_PER 10 |
#define | FAN_DUTY_RATIO_100_PER 100 |
#define | FAN_PWM_BASE_FREQ_ZERO_SCALE 0x00 |
#define | FAN_PWM_BASE_FREQ_HALF_SCALE 0x80 |
#define | FAN_PWM_BASE_FREQ_FULL_SCALE 0xFF |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Fan Click Example.
This application is controller for powering and regulating of fan.
The demo application is composed of two sections :
Initialization of click driver and usb uart serial terminal for results logging.
Performs a control of the fan and reads rotation per minute (RPM). Results will be sent to the usb uart terminal.
#define FAN_DUTY_RATIO_0_PER 0 |
PWM duty ratio 0 pecrents - zero scale. >
#define FAN_DUTY_RATIO_100_PER 100 |
PWM duty ratio 100 percents - full scale. >
#define FAN_DUTY_RATIO_10_PER 10 |
PWM duty ratio 10 percents - step. >
#define FAN_PWM_BASE_FREQ_FULL_SCALE 0xFF |
PWM base frequency full scale. >
#define FAN_PWM_BASE_FREQ_HALF_SCALE 0x80 |
PWM base frequency half scale. >
#define FAN_PWM_BASE_FREQ_ZERO_SCALE 0x00 |
PWM base frequency zero scale. >
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |