buttong 2.0.0.0
|
This file contains API for Button G 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 | buttong_t |
Button G Click driver selector. More... | |
struct | buttong_cfg_t |
Button G Click configuration object. More... | |
Macros | |
#define | BUTTONG_DEF_FREQ 500 |
Button G default PWM frequency. | |
#define | BUTTONG_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | buttong_return_value_t { BUTTONG_OK = 0 , BUTTONG_ERROR = -1 } |
Button G Click return value data. More... | |
Functions | |
void | buttong_cfg_setup (buttong_cfg_t *cfg) |
Button G configuration object setup function. | |
err_t | buttong_init (buttong_t *ctx, buttong_cfg_t *cfg) |
Button G initialization function. | |
err_t | buttong_set_duty_cycle (buttong_t *ctx, float duty_cycle) |
Button G sets PWM duty cycle. | |
err_t | buttong_pwm_stop (buttong_t *ctx) |
Button G stop PWM module. | |
err_t | buttong_pwm_start (buttong_t *ctx) |
Button G start PWM module. | |
uint8_t | buttong_get_button_state (buttong_t *ctx) |
Button G get button state function. | |
This file contains API for Button G Click Driver.