duallin 2.0.0.0
|
This file contains API for Dual LIN Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | duallin_t |
Click ctx object definition. More... | |
struct | duallin_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DUALLIN_MAP_MIKROBUS(cfg, mikrobus) |
#define | DUALLIN_RETVAL uint8_t |
#define | DUALLIN_OK 0x00 |
#define | DUALLIN_INIT_ERROR 0xFF |
#define | DUALLIN_PIN_STATE_LOW 0 |
#define | DUALLIN_PIN_STATE_HIGH 1 |
#define | DRV_RX_BUFFER_SIZE 500 |
Typedefs | |
typedef uint8_t | duallin_error_t |
Error type. | |
Functions | |
void | duallin_cfg_setup (duallin_cfg_t *cfg) |
Config Object Initialization function. | |
DUALLIN_RETVAL | duallin_init (duallin_t *ctx, duallin_cfg_t *cfg) |
Initialization function. | |
void | duallin_generic_write (duallin_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int16_t | duallin_generic_read (duallin_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | duallin_bus1_status (duallin_t *ctx, uint8_t state) |
Sets state of RST pin. | |
void | duallin_bus2_status (duallin_t *ctx, uint8_t state) |
Sets state of CS pin. | |
void | duallin_send_command (duallin_t *ctx, char *command) |
Send command. | |
This file contains API for Dual LIN Click driver.