![]() |
RTEMS 7.0-rc1
|
This file is part of CAN/CAN FD bus common support and implements controller's side of FIFO operations. More...
#include <string.h>#include <rtems/score/basedefs.h>#include <dev/can/can-devcommon.h>#include <dev/can/can-stats.h>Macros | |
| #define | SEC_TO_NSEC 1000000000 |
Functions | |
| void | rtems_can_stats_reset (struct rtems_can_stats *stats) |
| This function resets the controller's statistics. | |
| int | rtems_can_queue_ends_init_chip (struct rtems_can_chip *chip, const char *name) |
| This function initializes ends from chip's side. | |
| uint64_t | rtems_can_fill_timestamp (void) |
| This function fills timestamping with current monotonic time. | |
| int | rtems_can_chip_start (struct rtems_can_chip *chip) |
| This function starts the controller. | |
This file is part of CAN/CAN FD bus common support and implements controller's side of FIFO operations.
Implementation is based on original LinCAN - Linux CAN bus driver Part of OrtCAN project https://ortcan.sourceforge.net/
| int rtems_can_chip_start | ( | struct rtems_can_chip * | chip | ) |
This function starts the controller.
Provides common interface to start controller based on rtems_can_chip structure passed as input parameter.
| chip | Pointer to rtems_can_chip structure |
| uint64_t rtems_can_fill_timestamp | ( | void | ) |
This function fills timestamping with current monotonic time.
| int rtems_can_queue_ends_init_chip | ( | struct rtems_can_chip * | chip, |
| const char * | name | ||
| ) |
This function initializes ends from chip's side.
It should be called by CAN controller to initialize its ends.
| chip | Pointer to rtems_can_chip structure |
| name | Name of the controller's worker semaphore |
| void rtems_can_stats_reset | ( | struct rtems_can_stats * | stats | ) |
This function resets the controller's statistics.
This sets all fields of rtems_can_stats structure to zero. It should be called by the controller after it is started.
| stats | Pointer to rtems_can_stats structure. |