• Home • Files • Structures         • Download

can_sock.h File Reference


Detailed Description

This file holds definitions and structures for the CAN socket interface. The address family AF_CAN ist defined here, but should be moved to the header file <linux/socket.h>.

Include dependency graph for can_sock.h:


Data Structures

struct  can_sock
 Protocol dependent socket structure. More...

Enumerations

enum  SIOC_CAN { , SIOC_CAN_SET_BAUDRATE = SIOC_CAN_FIRST, SIOC_CAN_SET_BITTIMING, SIOC_CAN_SET_MODE, SIOC_CAN_GET_STATE, SIOC_CAN_GET_HW_INFO, SIOC_CAN_GET_STATS }

Functions

int can_socket_init (void)
void can_socket_cleanup (void)

Enumeration Type Documentation

enum SIOC_CAN

Socket I/O operations.

The following CAN specific socket I/O operations are defined. Please note that the number is limited to 16 specific opcodes (refer to sockios.h).

Enumerator:
SIOC_CAN_SET_BAUDRATE  Set baudrate of CAN controller
SIOC_CAN_SET_BITTIMING  Set bittiming of CAN controller
SIOC_CAN_SET_MODE  Set mode of CAN controller, refer to CpCoreCanMode()
SIOC_CAN_GET_STATE  Get state of CAN controller, refer to CpCoreCanState()
SIOC_CAN_GET_HW_INFO  Get hardware info, refer to CpCoreHDI()
SIOC_CAN_GET_STATS  Get statistics, refer to CpCoreStatistic()


Function Documentation

void can_socket_cleanup ( void   ) 

release CAN socket interface

This function releases the AF_CAN socket family.

int can_socket_init ( void   ) 

initialize CAN socket interface

This function registers the AF_CAN socket family.


SourceForge.net Logo

© MicroControl GmbH & Co. KG

CANpie - V1.93