Microchip® Advanced Software Framework

qs_lin.c File Reference

SAM USART LIN Quick Start.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <string.h>
#include <conf_lin.h>

Macros

#define LIN_DATA_LEN   5
 [lin_id] More...
 
#define LIN_ID_FIELD_VALUE   0x64
 [module_inst] More...
 

Functions

static void configure_usart_cdc (void)
 [lin_buffer] More...
 
static void configure_usart_lin (void)
 
static void lin_read_callback (struct usart_module *const usart_module)
 [CDC_setup] More...
 
static void lin_read_error_callback (struct usart_module *const usart_module)
 
int main (void)
 [lin_setup] More...
 

Variables

static struct usart_module
cdc_instance 
lin_instance
 [module_var] More...
 
static uint8_t rx_buffer [LIN_DATA_LEN] ={0}
 
static const uint8_t tx_buffer [LIN_DATA_LEN] ={0x4a,0x55,0x93,0xe5,0xe6}
 

#define LIN_DATA_LEN   5

[lin_id]

[lin_buffer]

Referenced by lin_read_callback().

#define LIN_ID_FIELD_VALUE   0x64

[module_inst]

[lin_id]

Referenced by lin_read_callback(), and main().

static void configure_usart_cdc ( void  )
static
static void lin_read_callback ( struct usart_module *const  usart_module)
static
static void lin_read_error_callback ( struct usart_module *const  usart_module)
static

Referenced by configure_usart_lin().

int main ( void  )

struct usart_module cdc_instance lin_instance
static

[module_var]

[module_inst]

Referenced by configure_usart_lin(), lin_read_callback(), and main().

uint8_t rx_buffer[LIN_DATA_LEN] ={0}
static
const uint8_t tx_buffer[LIN_DATA_LEN] ={0x4a,0x55,0x93,0xe5,0xe6}
static

Referenced by lin_read_callback().