can_resmgr_init_device()
Initialize a CAN resource manager device
Synopisis
#include <hw/libcan.h>
int can_resmgr_init_device( CANDEV* cdev,
CANDEV_INIT* const devinit );Arguments
- cdev
A pointer to a preallocated
CANDEVinstance that contains initialized device data. This pointer must remain valid until you call can_resmgr_destroy_device() with the same cdev.- devinit
A pointer to a
CANDEV_INITstructure containing requested device parameters. This pointer only needs to be valid for the duration of the call to can_resmgr_init_device(); the instance can be on the stack.
Description
The can_resmgr_init_device() function initializes a CAN resource manager device based on the requested device parameter specified by the devinit argument.
Returns
0 on success, or -1 on error.
Page updated:
