Classes | Namespaces | Defines | Functions
socketcan.cpp File Reference
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>
#include <sys/socket.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <cstring>
#include <dashel/dashel.h>
#include <dashel/dashel-posix.h>
#include "../../common/consts.h"
Include dependency graph for socketcan.cpp:

Go to the source code of this file.

Classes

class  CanStream

Namespaces

namespace  Dashel

Defines

#define AF_CAN   29
#define CANID_TO_ID(canid)   ((int) ((canid) & 0xFF))
#define CANID_TO_TYPE(canid)   ((canid) >> 8)
#define PF_CAN   AF_CAN
#define RX_CAN_SIZE   1000
#define SO_RXQ_OVFL   40
#define TO_CANID(type, id)   (((type) << 8) | (id))
#define TYPE_PACKET_NORMAL   0x0
#define TYPE_PACKET_START   0x1
#define TYPE_PACKET_STOP   0x2
#define TYPE_SMALL_PACKET   0x3

Functions

void Dashel::initPlugins ()

Define Documentation

#define AF_CAN   29

Definition at line 42 of file socketcan.cpp.

#define CANID_TO_ID (   canid)    ((int) ((canid) & 0xFF))

Definition at line 78 of file socketcan.cpp.

#define CANID_TO_TYPE (   canid)    ((canid) >> 8)

Definition at line 77 of file socketcan.cpp.

#define PF_CAN   AF_CAN

Definition at line 45 of file socketcan.cpp.

#define RX_CAN_SIZE   1000

Definition at line 94 of file socketcan.cpp.

#define SO_RXQ_OVFL   40

Definition at line 49 of file socketcan.cpp.

#define TO_CANID (   type,
  id 
)    (((type) << 8) | (id))

Definition at line 79 of file socketcan.cpp.

#define TYPE_PACKET_NORMAL   0x0

Definition at line 73 of file socketcan.cpp.

#define TYPE_PACKET_START   0x1

Definition at line 74 of file socketcan.cpp.

#define TYPE_PACKET_STOP   0x2

Definition at line 75 of file socketcan.cpp.

#define TYPE_SMALL_PACKET   0x3

Definition at line 72 of file socketcan.cpp.



aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39