lin  2.0.0.0
Data Structures | Macros | Typedefs | Functions
lin.h File Reference

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 LIN_OK   0x00
 
#define LIN_FUNCTION_ERROR   0xEE
 
#define LIN_INIT_ERROR   0xFF
 
#define LIN_PIN_STATE_LOW   0
 
#define LIN_PIN_STATE_HIGH   1
 

Typedefs

typedef uart_data_t lin_data_t
 

Functions

void lin_cfg_setup (lin_cfg_t *cfg)
 Config Object Initialization function. More...
 
LIN_RETVAL lin_init (lin_t *ctx, lin_cfg_t *cfg)
 Initialization function. More...
 
void lin_generic_multi_write (lin_t *ctx, lin_data_t *data_buf, uart_length_t len)
 Generic multi write function. More...
 
void lin_generic_multi_read (lin_t *ctx, lin_data_t *data_buf, uart_length_t len)
 Generic multi read function. More...
 
lin_data_t lin_generic_single_read (lin_t *ctx)
 Generic single read function. More...
 
void lin_generic_single_write (lin_t *ctx, lin_data_t tx_data)
 Generic single write function. More...
 
uint8_t lin_enable_pin_set (lin_t *ctx, uint8_t state)
 Sets state of pin. More...
 
uint8_t lin_inhibit_pin_set (lin_t *ctx, uint8_t state)
 Sets state of pin. More...
 
uint8_t lin_wake_pin_set (lin_t *ctx, uint8_t state)
 Sets state of pin. More...
 

Detailed Description

This file contains API for LIN Click driver.