Public Member Functions | Protected Attributes | Private Member Functions
CanStream Class Reference
Inheritance diagram for CanStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CanStream (const string &targetName)
virtual void flush ()
virtual bool isDataInRecvBuffer () const
virtual void read (void *data, size_t size)
virtual bool receiveDataAndCheckDisconnection ()
virtual void write (const void *data, const size_t size)

Protected Attributes

struct sockaddr_can addr
char ctrlmsg [CMSG_SPACE(sizeof(struct timeval))+CMSG_SPACE(sizeof(__u32))]
struct iovec iov
struct msghdr msg
struct can_frame rframe
unsigned char rx_buffer [ASEBA_MAX_OUTER_PACKET_SIZE]
int rx_consume
struct {
   struct can_frame   f
   int   used
rx_fifo [RX_CAN_SIZE]
int rx_insert
unsigned int rx_len
unsigned int rx_p
unsigned char tx_buffer [ASEBA_MAX_OUTER_PACKET_SIZE]
int tx_len

Private Member Functions

int defragment (void)
int fifo_full ()
int is_packet_tx (void)
void pack_fifo ()
void read_iface (void)
void send_aseba_packet ()

Detailed Description

Definition at line 70 of file socketcan.cpp.


Constructor & Destructor Documentation

CanStream::CanStream ( const string &  targetName) [inline]

Definition at line 102 of file socketcan.cpp.


Member Function Documentation

int CanStream::defragment ( void  ) [inline, private]

Definition at line 241 of file socketcan.cpp.

int CanStream::fifo_full ( ) [inline, private]

Definition at line 321 of file socketcan.cpp.

virtual void CanStream::flush ( ) [inline, virtual]

Implements Dashel::Stream.

Definition at line 225 of file socketcan.cpp.

int CanStream::is_packet_tx ( void  ) [inline, private]

Definition at line 152 of file socketcan.cpp.

virtual bool CanStream::isDataInRecvBuffer ( ) const [inline, virtual]

Implements Dashel::SelectableStream.

Definition at line 393 of file socketcan.cpp.

void CanStream::pack_fifo ( ) [inline, private]

Definition at line 229 of file socketcan.cpp.

virtual void CanStream::read ( void *  data,
size_t  size 
) [inline, virtual]

Implements Dashel::Stream.

Definition at line 370 of file socketcan.cpp.

void CanStream::read_iface ( void  ) [inline, private]

Definition at line 329 of file socketcan.cpp.

virtual bool CanStream::receiveDataAndCheckDisconnection ( ) [inline, virtual]

Implements Dashel::SelectableStream.

Definition at line 388 of file socketcan.cpp.

void CanStream::send_aseba_packet ( ) [inline, private]

Definition at line 163 of file socketcan.cpp.

virtual void CanStream::write ( const void *  data,
const size_t  size 
) [inline, virtual]

Implements Dashel::Stream.

Definition at line 213 of file socketcan.cpp.


Member Data Documentation

struct sockaddr_can CanStream::addr [protected]

Definition at line 90 of file socketcan.cpp.

char CanStream::ctrlmsg[CMSG_SPACE(sizeof(struct timeval))+CMSG_SPACE(sizeof(__u32))] [protected]

Definition at line 91 of file socketcan.cpp.

struct can_frame CanStream::f

Definition at line 96 of file socketcan.cpp.

struct iovec CanStream::iov [protected]

Definition at line 88 of file socketcan.cpp.

struct msghdr CanStream::msg [protected]

Definition at line 89 of file socketcan.cpp.

struct can_frame CanStream::rframe [protected]

Definition at line 92 of file socketcan.cpp.

Definition at line 84 of file socketcan.cpp.

int CanStream::rx_consume [protected]

Definition at line 100 of file socketcan.cpp.

struct { ... } CanStream::rx_fifo[RX_CAN_SIZE] [protected]
int CanStream::rx_insert [protected]

Definition at line 99 of file socketcan.cpp.

unsigned int CanStream::rx_len [protected]

Definition at line 85 of file socketcan.cpp.

unsigned int CanStream::rx_p [protected]

Definition at line 86 of file socketcan.cpp.

Definition at line 82 of file socketcan.cpp.

int CanStream::tx_len [protected]

Definition at line 83 of file socketcan.cpp.

Definition at line 97 of file socketcan.cpp.


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


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17