ncv7356.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 
32 #ifndef NCV7356_H
33 #define NCV7356_H
34 
35 #include <stdio.h>
36 
37 #include "periph/gpio.h"
38 #include "can/can_trx.h"
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
47 typedef struct ncv7356_trx {
52 
56  gpio_t mode0_pin;
57 
61  gpio_t mode1_pin;
62 
64 
75 
84 int ncv7356_trx_init(can_trx_t *dev);
85 
89 extern const trx_driver_t ncv7356_driver;
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 #endif /* NCV7356_H */
96 
ncv7356_driver
const trx_driver_t ncv7356_driver
ncv7356 driver
ncv7356_trx::mode0_pin
gpio_t mode0_pin
Mode 0 pin of ncv7356 device.
Definition: ncv7356.h:56
ncv7356_trx_set_mode
int ncv7356_trx_set_mode(can_trx_t *dev, can_trx_mode_t mode)
Set mode interface.
ncv7356_trx::trx
can_trx_t trx
set mode interface
Definition: ncv7356.h:51
ncv7356_trx::mode1_pin
gpio_t mode1_pin
Mode 1 pin of ncv7356 device.
Definition: ncv7356.h:61
can_trx
Generic transceiver descriptor.
Definition: can_trx.h:48
can_trx.h
CAN generic transceiver interface.
gpio.h
Low-level GPIO peripheral driver interface definitions.
trx_driver
Generic transceiver driver.
Definition: can_trx.h:56
ncv7356_trx
ncv7356 trx descriptor
Definition: ncv7356.h:47
can_trx_mode_t
can_trx_mode_t
trx transceiver mode
Definition: can_trx.h:31
ncv7356_trx_t
struct ncv7356_trx ncv7356_trx_t
ncv7356 trx descriptor
ncv7356_trx_init
int ncv7356_trx_init(can_trx_t *dev)
Initialize the given ncv7356.