|
Autoware.Auto
|
|
Classes | |
| class | CanId |
| struct | ExtendedFrame_ |
| Tag for extended frame. More... | |
| class | SocketCanReceiver |
| Simple RAII wrapper around a raw CAN receiver. More... | |
| class | SocketCanSender |
| Simple RAII wrapper around a raw CAN sender. More... | |
| class | SocketCanTimeout |
| Special error for timeout. More... | |
| struct | StandardFrame_ |
| Tag for standard frame. More... | |
Enumerations | |
| enum | FrameType : uint32_t { FrameType::DATA, FrameType::ERROR, FrameType::REMOTE } |
Functions | |
| int32_t | bind_can_socket (const std::string &interface) |
| struct timeval | to_timeval (const std::chrono::nanoseconds timeout) noexcept |
| Convert std::chrono duration to timeval (with microsecond resolution) More... | |
| fd_set | single_set (int32_t file_descriptor) noexcept |
| Create a fd_set for use with select() that only contains the specified file descriptor. More... | |
Variables | |
| constexpr std::size_t | MAX_DATA_LENGTH = 8U |
| constexpr StandardFrame_ | StandardFrame |
| constexpr ExtendedFrame_ | ExtendedFrame |
| constexpr CanId::IdT | EXTENDED_MASK = CAN_EFF_FLAG |
| constexpr CanId::IdT | REMOTE_MASK = CAN_RTR_FLAG |
| constexpr CanId::IdT | ERROR_MASK = CAN_ERR_FLAG |
| constexpr CanId::IdT | EXTENDED_ID_MASK = CAN_EFF_MASK |
| constexpr CanId::IdT | STANDARD_ID_MASK = CAN_SFF_MASK |
|
strong |
| int32_t autoware::drivers::socketcan::bind_can_socket | ( | const std::string & | interface | ) |
Bind a non-blocking CAN_RAW socket to the given interface
| [in] | interface | The name of the interface to bind, must be smaller than IFNAMSIZ |
| std::runtime_error | If one of socket(), fnctl(), ioctl(), bind() failed |
| std::domain_error | If the provided interface name is too long |
|
noexcept |
Create a fd_set for use with select() that only contains the specified file descriptor.
|
noexcept |
Convert std::chrono duration to timeval (with microsecond resolution)
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |