CAN_DEVCTL_DEBUG_INFO

Get debugging information

Synopsis:

#include <sys/can_dcmd.h>

#define CAN_DEVCTL_DEBUG_INFO   __DION(_DCMD_MISC, CAN_CMD_CODE + 101)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device
dcmd CAN_DEVCTL_DEBUG_INFO
dev_data_ptr NULL
n_bytes 0
dev_info_ptr NULL

Description:

This command asks the driver to display debugging information. The information depends on the type of device, but typically includes the registers and mailbox memory, and is sent to stderr. For more information, see src/hardware/can/board_name/board_namecan.readme in your Board Support Package.

Input:

None.

Output:

None.

Example:

int      ret;

if( (fd = open( "/dev/can1/rx0", O_RDWR)) == -1 )
{
    printf("open of %s failed \n", devname);
    exit(EXIT_FAILURE);
}

if (EOK != (ret = devctl(fd, CAN_DEVCTL_DEBUG_INFO, NULL, 0, NULL)))
{
    fprintf(stderr, "devctl CAN_DEVCTL_DEBUG_INFO: %s\n", strerror(ret));
}

See also:

devctl() in the QNX Neutrino C Library Reference

canctl in the Utilities Reference