profet27a 2.0.0.0
|
This file contains API for PROFET 2 7A 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 | profet27a_t |
PROFET 2 7A Click context object. More... | |
struct | profet27a_cfg_t |
PROFET 2 7A Click configuration object. More... | |
Macros | |
#define | PROFET27A_MODE_ON 1 |
PROFET mode settings. | |
#define | PROFET27A_MODE_OFF 2 |
#define | PROFET27A_DIAGNOSTIC_ON 3 |
#define | PROFET27A_DIAGNOSTIC_OFF 4 |
#define | PROFET27A_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | profet27a_return_value_t { PROFET27A_OK = 0 , PROFET27A_ERROR = -1 , PROFET27A_ERROR_CHANNEL = -2 } |
PROFET 2 7A Click return value data. More... | |
enum | profet27a_channel_t { PROFET27A_CHANNEL_0 = 0 , PROFET27A_CHANNEL_1 = 1 } |
PROFET 2 7A channel select. More... | |
Functions | |
void | profet27a_cfg_setup (profet27a_cfg_t *cfg) |
PROFET 2 7A configuration object setup function. | |
err_t | profet27a_init (profet27a_t *ctx, profet27a_cfg_t *cfg) |
PROFET 2 7A initialization function. | |
err_t | profet27a_default_cfg (profet27a_t *ctx) |
PROFET 2 7A default configuration function. | |
err_t | profet27a_read_an_pin_value (profet27a_t *ctx, uint16_t *data_out) |
Read AN pin value function. | |
err_t | profet27a_read_an_pin_voltage (profet27a_t *ctx, float *data_out) |
Read AN pin voltage level function. | |
void | profet27a_set_dsl (profet27a_t *ctx, uint8_t state) |
Set diagnostic select pin state. | |
void | profet27a_set_den (profet27a_t *ctx, uint8_t state) |
Set diagnostic enable pin state. | |
void | profet27a_set_in1 (profet27a_t *ctx, uint8_t state) |
Set channel 1 enable pin state. | |
void | profet27a_set_in0 (profet27a_t *ctx, uint8_t state) |
Set channel 0 enable pin state. | |
err_t | profet27a_set_mode (profet27a_t *ctx, profet27a_channel_t channel, uint8_t mode) |
Set mode device mode for specific channel channel. | |
This file contains API for PROFET 2 7A Click Driver.
enum profet27a_channel_t |