Loading...
Searching...
No Matches
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
41extern "C" {
42#endif
43
47typedef struct ncv7356_trx {
52
56 gpio_t mode0_pin;
57
61 gpio_t mode1_pin;
62
64
75
85
89extern const trx_driver_t ncv7356_driver;
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif /* NCV7356_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 ncv7356_trx_set_mode(can_trx_t *dev, can_trx_mode_t mode)
Set mode interface.
struct ncv7356_trx ncv7356_trx_t
ncv7356 trx descriptor
const trx_driver_t ncv7356_driver
ncv7356 driver
int ncv7356_trx_init(can_trx_t *dev)
Initialize the given ncv7356.
stdio wrapper to extend the C libs stdio
Generic transceiver descriptor.
Definition can_trx.h:48
ncv7356 trx descriptor
Definition ncv7356.h:47
gpio_t mode1_pin
Mode 1 pin of ncv7356 device.
Definition ncv7356.h:61
gpio_t mode0_pin
Mode 0 pin of ncv7356 device.
Definition ncv7356.h:56
can_trx_t trx
set mode interface
Definition ncv7356.h:51
Generic transceiver driver.
Definition can_trx.h:56