#include <CanUsb.h>
|
| typedef boost::function< void(unsigned int channel, uint32_t id, bool extended, uint8_t dlc, const uint8_t data[8])> | Callback |
| |
|
| bool | addFilter (unsigned int channel, uint32_t mask, uint32_t match) |
| |
| | CanUsb (lusb::UsbDevice *dev=NULL) |
| |
| void | closeDevice () |
| |
| void | flushMessages () |
| |
| bool | getStats (std::vector< uint32_t > &rx_drops, std::vector< uint32_t > &tx_drops, std::vector< uint8_t > &rx_errors, std::vector< uint8_t > &tx_errors, bool clear=false) |
| |
| bool | getTimeStamp (uint32_t ×tamp) |
| |
| bool | isOpen () |
| |
| MacAddr | macAddr () const |
| |
| unsigned int | numChannels () const |
| |
| bool | open (const std::string &mac=std::string()) |
| |
| bool | reboot () |
| |
| bool | reset () |
| |
| void | sendMessage (unsigned int channel, uint32_t id, bool extended, uint8_t dlc, const uint8_t data[8], bool flush=true) |
| |
| uint32_t | serialNumber () const |
| |
| bool | setBitrate (unsigned int channel, uint32_t bitrate, uint8_t mode=0) |
| |
| void | setRecvCallback (const Callback &callback) |
| |
| std::string | version () const |
| |
| uint16_t | versionBuild () const |
| |
| uint16_t | versionComms () const |
| |
| uint16_t | versionMajor () const |
| |
| uint16_t | versionMinor () const |
| |
| | ~CanUsb () |
| |
Definition at line 54 of file CanUsb.h.
| dataspeed_can_usb::CanUsb::~CanUsb |
( |
| ) |
|
| bool dataspeed_can_usb::CanUsb::addFilter |
( |
unsigned int |
channel, |
|
|
uint32_t |
mask, |
|
|
uint32_t |
match |
|
) |
| |
| void dataspeed_can_usb::CanUsb::closeDevice |
( |
| ) |
|
| bool dataspeed_can_usb::CanUsb::configure |
( |
const std::string & |
mac = std::string() | ) |
|
|
private |
| void dataspeed_can_usb::CanUsb::flushMessages |
( |
| ) |
|
| bool dataspeed_can_usb::CanUsb::getNumChannels |
( |
| ) |
|
|
private |
| bool dataspeed_can_usb::CanUsb::getStats |
( |
std::vector< uint32_t > & |
rx_drops, |
|
|
std::vector< uint32_t > & |
tx_drops, |
|
|
std::vector< uint8_t > & |
rx_errors, |
|
|
std::vector< uint8_t > & |
tx_errors, |
|
|
bool |
clear = false |
|
) |
| |
| bool dataspeed_can_usb::CanUsb::getTimeStamp |
( |
uint32_t & |
timestamp | ) |
|
| bool dataspeed_can_usb::CanUsb::isOpen |
( |
| ) |
|
| MacAddr dataspeed_can_usb::CanUsb::macAddr |
( |
| ) |
const |
|
inline |
| unsigned int dataspeed_can_usb::CanUsb::numChannels |
( |
| ) |
const |
|
inline |
| bool dataspeed_can_usb::CanUsb::open |
( |
const std::string & |
mac = std::string() | ) |
|
| int dataspeed_can_usb::CanUsb::readConfig |
( |
void * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
| int dataspeed_can_usb::CanUsb::readConfig |
( |
void * |
data, |
|
|
int |
size, |
|
|
int |
timeout |
|
) |
| |
|
private |
| int dataspeed_can_usb::CanUsb::readStream |
( |
void * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
| bool dataspeed_can_usb::CanUsb::readVersion |
( |
| ) |
|
|
private |
| bool dataspeed_can_usb::CanUsb::reboot |
( |
| ) |
|
| void dataspeed_can_usb::CanUsb::recvStream |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
| bool dataspeed_can_usb::CanUsb::reset |
( |
| ) |
|
| void dataspeed_can_usb::CanUsb::sendMessage |
( |
unsigned int |
channel, |
|
|
uint32_t |
id, |
|
|
bool |
extended, |
|
|
uint8_t |
dlc, |
|
|
const uint8_t |
data[8], |
|
|
bool |
flush = true |
|
) |
| |
| uint32_t dataspeed_can_usb::CanUsb::serialNumber |
( |
| ) |
const |
|
inline |
| bool dataspeed_can_usb::CanUsb::setBitrate |
( |
unsigned int |
channel, |
|
|
uint32_t |
bitrate, |
|
|
uint8_t |
mode = 0 |
|
) |
| |
| void dataspeed_can_usb::CanUsb::setRecvCallback |
( |
const Callback & |
callback | ) |
|
|
inline |
| std::string dataspeed_can_usb::CanUsb::version |
( |
| ) |
const |
| uint16_t dataspeed_can_usb::CanUsb::versionBuild |
( |
| ) |
const |
|
inline |
| uint16_t dataspeed_can_usb::CanUsb::versionComms |
( |
| ) |
const |
|
inline |
| uint16_t dataspeed_can_usb::CanUsb::versionMajor |
( |
| ) |
const |
|
inline |
| uint16_t dataspeed_can_usb::CanUsb::versionMinor |
( |
| ) |
const |
|
inline |
| bool dataspeed_can_usb::CanUsb::writeConfig |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
| bool dataspeed_can_usb::CanUsb::writeConfig |
( |
const void * |
data, |
|
|
int |
size, |
|
|
int |
timeout |
|
) |
| |
|
private |
| bool dataspeed_can_usb::CanUsb::writeStream |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
| bool dataspeed_can_usb::CanUsb::heap_dev_ |
|
private |
| MacAddr dataspeed_can_usb::CanUsb::mac_addr_ |
|
private |
| const unsigned int dataspeed_can_usb::CanUsb::MAX_CHANNELS = 4 |
|
static |
| const unsigned int dataspeed_can_usb::CanUsb::MAX_FILTERS = 32 |
|
static |
| unsigned int dataspeed_can_usb::CanUsb::num_channels_ |
|
private |
| TxQueue* dataspeed_can_usb::CanUsb::queue_ |
|
private |
| bool dataspeed_can_usb::CanUsb::ready_ |
|
private |
| Callback dataspeed_can_usb::CanUsb::recv_callback_ |
|
private |
| uint32_t dataspeed_can_usb::CanUsb::serial_number_ |
|
private |
| const int dataspeed_can_usb::CanUsb::USB_DEFAULT_TIMEOUT = 10 |
|
static |
| uint16_t dataspeed_can_usb::CanUsb::version_build_ |
|
private |
| uint16_t dataspeed_can_usb::CanUsb::version_comms_ |
|
private |
| uint16_t dataspeed_can_usb::CanUsb::version_major_ |
|
private |
| uint16_t dataspeed_can_usb::CanUsb::version_minor_ |
|
private |
The documentation for this class was generated from the following files: