RobotSimulation/pick_and_place/ROS/src/niryo_one_ros/mcp_can_rpi/src/mcp_can_rpi.cpp
INT8U MCP_CAN::begin(INT8U idmodeset, INT8U speedset, INT8U clockset)
{
    INT8U res;
 
    res = mcp2515_init(idmodeset, speedset, clockset);
    if (res == MCP2515_OK)
        return CAN_OK;
    
    return CAN_FAILINIT;
}
/*********************************************************************************************************
** Function name:           begin
** Descriptions:            Public function to declare controller initialization parameters.
*********************************************************************************************************/
Function name:           begin
Descriptions:            Public function to declare controller initialization parameters.
Function name : begin Descriptions : Public function to declare controller initialization parameters .
INT8U MCP_CAN::begin(INT8U idmodeset, INT8U speedset, INT8U clockset)
{
    INT8U res;
    res = mcp2515_init(idmodeset, speedset, clockset);
    if (res == MCP2515_OK)
        return CAN_OK;
    return CAN_FAILINIT;
}
INT8U MCP_CAN :: begin ( INT8U idmodeset , INT8U speedset , INT8U clockset ) { INT8U res ; res = mcp2515_init ( idmodeset , speedset , clockset ) ; if ( res == MCP2515_OK ) return CAN_OK ; return CAN_FAILINIT ; }
Function name:           begin
Descriptions:            Public function to declare controller initialization parameters.
Function name : begin Descriptions : Public function to declare controller initialization parameters .