piezodriver 2.1.0.0
|
This file contains API for Piezo Driver Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | piezodriver_t |
Piezo Driver Click context object. More... | |
struct | piezodriver_cfg_t |
Piezo Driver Click configuration object. More... | |
Enumerations | |
enum | piezodriver_return_value_t { PIEZODRIVER_OK = 0 , PIEZODRIVER_ERROR = -1 } |
Piezo Driver Click return value data. More... | |
Functions | |
void | piezodriver_cfg_setup (piezodriver_cfg_t *cfg) |
Piezo Driver configuration object setup function. | |
err_t | piezodriver_init (piezodriver_t *ctx, piezodriver_cfg_t *cfg) |
Piezo Driver initialization function. | |
err_t | piezodriver_default_cfg (piezodriver_t *ctx) |
Piezo Driver default configuration function. | |
err_t | piezodriver_set_duty_cycle (piezodriver_t *ctx, float duty_cycle) |
Piezo Driver sets PWM duty cycle. | |
err_t | piezodriver_pwm_stop (piezodriver_t *ctx) |
Piezo Driver stop PWM module. | |
err_t | piezodriver_pwm_start (piezodriver_t *ctx) |
Piezo Driver start PWM module. | |
void | piezodriver_play_sound (piezodriver_t *ctx, uint16_t freq, uint8_t level, uint16_t duration) |
Piezo Driver play sound function. | |
This file contains API for Piezo Driver Click Driver.