hztov2 2.0.0.0
|
This file contains API for HZ to V 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | hztov2_t |
Click ctx object definition. More... | |
struct | hztov2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | HZTOV2_MAP_MIKROBUS(cfg, mikrobus) |
#define | HZTOV2_RETVAL uint8_t |
#define | HZTOV2_OK 0x00 |
#define | HZTOV2_INIT_ERROR 0xFF |
#define | HZTOV2_DEF_FREQ 10000 |
Typedefs | |
typedef uint16_t | hztov2_data_t |
Analog data type. | |
Functions | |
void | hztov2_cfg_setup (hztov2_cfg_t *cfg) |
Config Object Initialization function. | |
HZTOV2_RETVAL | hztov2_init (hztov2_t *ctx, hztov2_cfg_t *cfg) |
Initialization function. | |
hztov2_data_t | hztov2_generic_read (hztov2_t *ctx) |
Generic read function. | |
float | hztov2_read_voltage (hztov2_t *ctx) |
Read voltage function. | |
void | hztov2_en_pin (hztov2_t *ctx, uint8_t pin_state) |
Function for enabling the click board. | |
HZTOV2_RETVAL | hztov2_fin_set (hztov2_t *ctx, uint32_t fin) |
PWM frequency set function. | |
This file contains API for HZ to V 2 Click driver.