This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5510: USB CDC send data as soon as port has been opened on host

Part Number: MSP430F5510


Hallo everyone,

i am trying to accomplish the same as in the referred thread.

As soon as the host pc open the port to the MSP i want to send some data.

I can't get the code from to work. How to proceed?

In USBCdc.c i have this function.

void usbSetControlLineState (void)
{
	USBCDC_handleSetControlLineState((uint8_t)tSetupPacket.wIndex,
            (uint8_t)tSetupPacket.wValue);
    usbSendZeroLengthPacketOnIEP0();                                        //Send ZLP for status stage
}

so i have to set a variable depending of tSetupPacket.wValue & 0x01; in this function?

and call this function in the main usbSetControlLineState()?

after that i can send data in an if with the variable as condition?

Thank you in advance

**Attention** This is a public forum