Hi,
I am trying to learn from the USBFTDILoopback example in the USBHost Shield Library V2.0 (by Oleg Mazurov).
However, I am stuck trying to work out the meaning of the "->" operators. They are on both "rcode =" lines from the FTDIAsync class showen below:
class FTDIAsync : public FTDIAsyncOper
{
public:
uint8_t OnInit(FTDI *pftdi);
};
uint8_t FTDIAsync::OnInit(FTDI *pftdi)
{
uint8_t rcode = 0;
rcode = pftdi->SetBaudRate(115200);
if (rcode)
{
ErrorMessage<uint8_t>(PSTR("SetBaudRate"), rcode);
return rcode;
}
rcode = pftdi->SetFlowControl(FTDI_SIO_DISABLE_FLOW_CTRL);
if (rcode)
ErrorMessage<uint8_t>(PSTR("SetFlowControl"), rcode);
return rcode;
}
Regards, Martin