#include <CAN.h>
|
static int | openSocket (const std::string &iface_name) |
|
Definition at line 54 of file CAN.h.
◆ CAN()
Linux::CAN::CAN |
( |
int |
socket_fd = 0 | ) |
|
|
inline |
Definition at line 56 of file CAN.h.
◆ ~CAN()
Definition at line 61 of file CAN.h.
◆ _checkHWFilters()
bool Linux::CAN::_checkHWFilters |
( |
const can_frame & |
frame | ) |
const |
|
private |
◆ _confirmSentFrame()
void Linux::CAN::_confirmSentFrame |
( |
| ) |
|
|
private |
◆ _incrementNumFramesInSocketTxQueue()
void Linux::CAN::_incrementNumFramesInSocketTxQueue |
( |
| ) |
|
|
private |
◆ _pollRead()
void Linux::CAN::_pollRead |
( |
| ) |
|
|
private |
◆ _pollWrite()
void Linux::CAN::_pollWrite |
( |
| ) |
|
|
private |
◆ _read()
int Linux::CAN::_read |
( |
uavcan::CanFrame & |
frame, |
|
|
uavcan::UtcTime & |
ts_utc, |
|
|
bool & |
loopback |
|
) |
| const |
|
private |
◆ _registerError()
◆ _wasInPendingLoopbackSet()
bool Linux::CAN::_wasInPendingLoopbackSet |
( |
const uavcan::CanFrame & |
frame | ) |
|
|
private |
◆ _write()
int Linux::CAN::_write |
( |
const uavcan::CanFrame & |
frame | ) |
const |
|
private |
◆ available()
int32_t Linux::CAN::available |
( |
| ) |
|
|
override |
◆ begin()
bool Linux::CAN::begin |
( |
uint32_t |
bitrate | ) |
|
|
override |
◆ configureFilters()
int16_t Linux::CAN::configureFilters |
( |
const uavcan::CanFilterConfig * |
filter_configs, |
|
|
uint16_t |
num_configs |
|
) |
| |
|
override |
◆ end()
◆ getErrorCount()
uint64_t Linux::CAN::getErrorCount |
( |
| ) |
const |
|
override |
◆ getFileDescriptor()
int Linux::CAN::getFileDescriptor |
( |
| ) |
const |
|
inline |
Definition at line 77 of file CAN.h.
◆ getNumFilters()
uint16_t Linux::CAN::getNumFilters |
( |
| ) |
const |
|
override |
◆ hasReadyRx()
bool Linux::CAN::hasReadyRx |
( |
| ) |
const |
◆ hasReadyTx()
bool Linux::CAN::hasReadyTx |
( |
| ) |
const |
◆ is_initialized()
bool Linux::CAN::is_initialized |
( |
| ) |
|
|
override |
◆ openSocket()
static int Linux::CAN::openSocket |
( |
const std::string & |
iface_name | ) |
|
|
static |
◆ poll()
void Linux::CAN::poll |
( |
bool |
read, |
|
|
bool |
write |
|
) |
| |
◆ receive()
int16_t Linux::CAN::receive |
( |
uavcan::CanFrame & |
out_frame, |
|
|
uavcan::MonotonicTime & |
out_ts_monotonic, |
|
|
uavcan::UtcTime & |
out_ts_utc, |
|
|
uavcan::CanIOFlags & |
out_flags |
|
) |
| |
|
override |
◆ reset()
void Linux::CAN::reset |
( |
| ) |
|
|
override |
◆ send()
int16_t Linux::CAN::send |
( |
const uavcan::CanFrame & |
frame, |
|
|
uavcan::MonotonicTime |
tx_deadline, |
|
|
uavcan::CanIOFlags |
flags |
|
) |
| |
|
override |
◆ tx_pending()
int32_t Linux::CAN::tx_pending |
( |
| ) |
|
|
override |
◆ _bitrate
uint32_t Linux::CAN::_bitrate |
|
private |
◆ _errors
◆ _fd
◆ _frames_in_socket_tx_queue
unsigned Linux::CAN::_frames_in_socket_tx_queue |
|
private |
◆ _hw_filters_container
std::vector<can_filter> Linux::CAN::_hw_filters_container |
|
private |
◆ _initialized
bool Linux::CAN::_initialized |
|
private |
◆ _max_frames_in_socket_tx_queue
const unsigned Linux::CAN::_max_frames_in_socket_tx_queue |
|
private |
◆ _pending_loopback_ids
std::unordered_multiset<uint32_t> Linux::CAN::_pending_loopback_ids |
|
private |
◆ _rx_queue
std::queue<RxItem> Linux::CAN::_rx_queue |
|
private |
◆ _tx_frame_counter
uint64_t Linux::CAN::_tx_frame_counter |
|
private |
◆ _tx_queue
std::priority_queue<TxItem> Linux::CAN::_tx_queue |
|
private |
The documentation for this class was generated from the following file:
- libraries/AP_HAL_Linux/CAN.h