profet15a 2.0.0.0
|
This file contains API for PROFET 15A Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | profet15a_t |
PROFET 15A Click context object. More... | |
struct | profet15a_cfg_t |
PROFET 15A Click configuration object. More... | |
Macros | |
#define | PROFET15A_MODE_ON 1 |
PROFET 15A description setting. | |
#define | PROFET15A_MODE_OFF 2 |
#define | PROFET15A_DIAGNOSTIC_ON 3 |
#define | PROFET15A_DIAGNOSTIC_OFF 4 |
#define | PROFET15A_FAULT 5 |
#define | PROFET15A_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | profet15a_return_value_t { PROFET15A_OK = 0 , PROFET15A_ERROR = -1 } |
PROFET 15A Click return value data. More... | |
Functions | |
void | profet15a_cfg_setup (profet15a_cfg_t *cfg) |
PROFET 15A configuration object setup function. | |
err_t | profet15a_init (profet15a_t *ctx, profet15a_cfg_t *cfg) |
PROFET 15A initialization function. | |
err_t | profet15a_read_an_pin_value (profet15a_t *ctx, uint16_t *data_out) |
PROFET 15A read AN pin value function. | |
err_t | profet15a_read_an_pin_voltage (profet15a_t *ctx, float *data_out) |
PROFET 15A read AN pin voltage level function. | |
err_t | profet15a_set_mode (profet15a_t *ctx, uint8_t mode) |
PROFET 15A set mode. | |
This file contains API for PROFET 15A Click Driver.