lin 2.0.0.0
|
This file contains API for 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 | lin_t |
Click ctx object definition. More... | |
struct | lin_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LIN_MAP_MIKROBUS(cfg, mikrobus) |
#define | LIN_RETVAL uint8_t |
#define | LIN_OK 0x00 |
#define | LIN_INIT_ERROR 0xFF |
#define | DRV_RX_BUFFER_SIZE 500 |
Typedefs | |
typedef uint8_t | lin_error_t |
Error type. | |
Functions | |
void | lin_cfg_setup (lin_cfg_t *cfg) |
Config Object Initialization function. | |
LIN_RETVAL | lin_init (lin_t *ctx, lin_cfg_t *cfg) |
Initialization function. | |
void | lin_generic_write (lin_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | lin_generic_read (lin_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | lin_set_enable (lin_t *ctx, uint8_t state) |
Set enable pin state. | |
void | lin_set_wake_up (lin_t *ctx, uint8_t state) |
Set wake up pin state. | |
This file contains API for LIN Click driver.