Loading...
Searching...
No Matches
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
32extern "C" {
33#endif
34
38typedef struct tja1042_trx {
43
47 gpio_t stb_pin;
48
50
61
71
75extern const trx_driver_t tja1042_driver;
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* TJA1042_H */
CAN generic transceiver interface.
Low-level GPIO peripheral driver interface definitions.
can_trx_mode_t
trx transceiver mode
Definition can_trx.h:31
int tja1042_trx_init(can_trx_t *dev)
Initialize the given tja1042.
struct tja1042_trx tja1042_trx_t
tja1042 CAN trx descriptor
int tja1042_trx_set_mode(can_trx_t *dev, can_trx_mode_t mode)
Set mode interface.
const trx_driver_t tja1042_driver
tja1042 driver
stdio wrapper to extend the C libs stdio
Generic transceiver descriptor.
Definition can_trx.h:48
tja1042 CAN trx descriptor
Definition tja1042.h:38
can_trx_t trx
set mode interface
Definition tja1042.h:42
gpio_t stb_pin
Mode pin of tja1042 device.
Definition tja1042.h:47
Generic transceiver driver.
Definition can_trx.h:56