RobotSimulation/pick_and_place/ROS/src/niryo_one_ros/mcp_can_rpi/src/mcp_can_rpi.cpp
INT8U MCP_CAN::mcp2515_readRegister(const INT8U address)                                                                     
{
    INT8U ret;
    
    unsigned char buf[3] = { MCP_READ, address, 0x00 };
    spiTransfer(3, buf);
    ret = buf[2];

    return ret;
}
/*********************************************************************************************************
** Function name:           mcp2515_readRegister
** Descriptions:            Read data register
*********************************************************************************************************/
Function name:           mcp2515_readRegister
Descriptions:            Read data register
Function name : mcp2515_readRegister Descriptions : Read data register
INT8U MCP_CAN::mcp2515_readRegister(const INT8U address)                                                                     
{
    INT8U ret;
    unsigned char buf[3] = { MCP_READ, address, 0x00 };
    spiTransfer(3, buf);
    ret = buf[2];
    return ret;
}
INT8U MCP_CAN :: mcp2515_readRegister ( const INT8U address ) { INT8U ret ; unsigned char buf [ 3 ] = { MCP_READ , address , 0x00 } ; spiTransfer ( 3 , buf ) ; ret = buf [ 2 ] ; return ret ; }
Function name:           mcp2515_readRegister
Descriptions:            Read data register
Function name : mcp2515_readRegister Descriptions : Read data register