profet10a 2.0.0.0
|
This file contains API for PROFET 10A 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 | profet10a_t |
PROFET 10A Click context object. More... | |
struct | profet10a_cfg_t |
PROFET 10A Click configuration object. More... | |
Macros | |
#define | PROFET10A_MODE_ON 1 |
PROFET 10A description setting. | |
#define | PROFET10A_MODE_OFF 2 |
#define | PROFET10A_DIAGNOSTIC_ON 3 |
#define | PROFET10A_DIAGNOSTIC_OFF 4 |
#define | PROFET10A_FAULT 5 |
#define | PROFET10A_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | profet10a_return_value_t { PROFET10A_OK = 0 , PROFET10A_ERROR = -1 } |
PROFET 10A Click return value data. More... | |
Functions | |
void | profet10a_cfg_setup (profet10a_cfg_t *cfg) |
PROFET 10A configuration object setup function. | |
err_t | profet10a_init (profet10a_t *ctx, profet10a_cfg_t *cfg) |
PROFET 10A initialization function. | |
err_t | profet10a_read_an_pin_value (profet10a_t *ctx, uint16_t *data_out) |
PROFET 10A read AN pin value function. | |
err_t | profet10a_read_an_pin_voltage (profet10a_t *ctx, float *data_out) |
PROFET 10A read AN pin voltage level function. | |
err_t | profet10a_set_mode (profet10a_t *ctx, uint8_t mode) |
PROFET 10A set mode. | |
This file contains API for PROFET 10A Click Driver.