SimAVR
AVR Simulator
avr_lin.h
Go to the documentation of this file.
1 /*
2  * avr_lin.h
3  *
4  * Copyright 2008, 2011 Michel Pollet <buserror@gmail.com>
5  * Copyright 2011 Markus Lampert <mlampert@telus.net>
6  *
7  * This file is part of simavr.
8  *
9  * simavr is free software: you can redistribute it and/or modify it under the terms of the GNU
10  * General Public License as published by the Free Software Foundation, either version 3 of the
11  * License, or (at your option) any later version.
12  *
13  * simavr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15  * Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with simavr. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
26 #ifndef __AVR_LIN_H__
27 #define __AVR_LIN_H__
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 #include "sim_avr.h"
35 #include "avr_uart.h"
36 
37  typedef struct avr_lin_t
38  {
40 
43 
47 
49  } avr_lin_t;
50 
51  void avr_lin_init (avr_t * avr, avr_lin_t * port);
52 
53 #ifdef __cplusplus
54 };
55 #endif
56 
57 #endif /* __AVR_LIN_H__ */
58 
avr_regbit_t lbt
Definition: avr_lin.h:46
avr_regbit_t lena
Definition: avr_lin.h:44
avr_io_t io
Definition: avr_lin.h:39
uint16_t avr_io_addr_t
Definition: sim_avr_types.h:37
avr_uart_t uart
used when LIN controller is setup as a UART
Definition: avr_lin.h:48
avr_t * avr
Definition: run_avr.c:54
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits)...
Definition: sim_avr_types.h:47
avr_io_addr_t r_linbrrh
Definition: avr_lin.h:42
struct avr_lin_t avr_lin_t
avr_regbit_t ldisr
Definition: avr_lin.h:45
avr_io_addr_t r_linbrrl
Definition: avr_lin.h:42
Definition: avr_uart.h:91
void avr_lin_init(avr_t *avr, avr_lin_t *port)
Definition: avr_lin.c:90
Main AVR instance.
Definition: sim_avr.h:142
IO module base struct Modules uses that as their first member in their own struct.
Definition: sim_io.h:42
avr_io_addr_t r_linbtr
Definition: avr_lin.h:41
Definition: avr_lin.h:37