What does this mean?

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

-> is the thing a pointer is pointing as a member of a structure or class.

(*p).member is the same as p->member.

Simple use of Google '-> c++ operator' would have given you the answer...

Thank you Marco,

All I can say is: Your Google must be MUCH better than mine! Been trying for days...

Regards,