tja1042.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2018 OTA keys S.A.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
23 #ifndef TJA1042_H
24 #define TJA1042_H
25 
26 #include <stdio.h>
27 
28 #include "periph/gpio.h"
29 #include "can/can_trx.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 typedef struct tja1042_trx {
43 
47  gpio_t stb_pin;
48 
50 
61 
70 int tja1042_trx_init(can_trx_t *dev);
71 
75 extern const trx_driver_t tja1042_driver;
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* TJA1042_H */
82 
tja1042_trx::stb_pin
gpio_t stb_pin
Mode pin of tja1042 device.
Definition: tja1042.h:47
tja1042_trx_set_mode
int tja1042_trx_set_mode(can_trx_t *dev, can_trx_mode_t mode)
Set mode interface.
can_trx
Generic transceiver descriptor.
Definition: can_trx.h:48
tja1042_trx::trx
can_trx_t trx
set mode interface
Definition: tja1042.h:42
can_trx.h
CAN generic transceiver interface.
tja1042_trx
tja1042 CAN trx descriptor
Definition: tja1042.h:38
tja1042_trx_t
struct tja1042_trx tja1042_trx_t
tja1042 CAN trx descriptor
gpio.h
Low-level GPIO peripheral driver interface definitions.
tja1042_trx_init
int tja1042_trx_init(can_trx_t *dev)
Initialize the given tja1042.
trx_driver
Generic transceiver driver.
Definition: can_trx.h:56
can_trx_mode_t
can_trx_mode_t
trx transceiver mode
Definition: can_trx.h:31
tja1042_driver
const trx_driver_t tja1042_driver
tja1042 driver