RTEMS CAN/CAN FD Stack
Loading...
Searching...
No Matches
Public Attributes | List of all members
can_chip_ops Struct Reference

This structure represents CAN controller operations. These provides interface from IOCTL calls to controller functions and should be registered during controller initialization. More...

#include <can-devcommon.h>

Public Attributes

int(* start_chip )(struct can_chip *chip)
 Starts the chip. Called with RTEMS_CAN_CHIP_START ioctl.
 
int(* stop_chip )(struct can_chip *chip)
 Stops the chip. Called with RTEMS_CAN_CHIP_STOP ioctl.
 
int(* chip_ioctl )(struct can_chip *chip, ioctl_command_t command, void *arg)
 Unrecognized ioctl calls are passed to chip specific function to handle them. This way chip specific ioctl calls can be implemented.
 
int(* get_chip_timestamp )(struct can_chip *chip, uint64_t *timestamp)
 Obtains timestamp from the controller. Called with RTEMS_CAN_CHIP_GET_TIMESTAMP ioctl.
 
int(* get_chip_info )(struct can_chip *chip, int what)
 Obtains controller's information specified by input integer argument. Called with RTEMS_CAN_CHIP_GET_INFO ioctl.
 
int(* calc_bittiming )(struct can_chip *chip, int type, struct can_bittiming *bt)
 Calculates bit timing from given bit rate and saves the values to controller's registers. Called with RTEMS_CAN_SET_BITRATE ioctl if CAN_BITTIME_FROM_BITRATE is set.
 
int(* check_and_set_bittiming )(struct can_chip *chip, int type, struct can_bittiming *bt)
 Checks bit timing given by user and saves it to controller's registers. Called with RTEMS_CAN_SET_BITRATE ioctl if CAN_BITTIME_FROM_PRECOMPUTED is set.
 
int(* set_chip_mode )(struct can_chip *chip, uint32_t mode)
 Sets controller mode defined in input argument. Called with RTEMS_CAN_CHIP_SET_MODE.
 

Detailed Description

This structure represents CAN controller operations. These provides interface from IOCTL calls to controller functions and should be registered during controller initialization.


The documentation for this struct was generated from the following file: