4.4.8.3.6 USB_SETUP_STRING_CALLBACK_t

typedef RETURN_CODE_t(* USB_SETUP_STRING_CALLBACK_t) (uint8_t stringIndex, uint16_t langID, uint8_t **descriptorAddressPtr, uint16_t *descriptorLength)

Function callback type USB_SETUP_STRING_CALLBACK_t. Callback type used for setup request processing a string descriptor, with a return code to let the stack know to proceed.

Parameters:
stringIndex

- Specifies which string of device information is requested

langID

- Which language the string requested must be in

**descriptorAddressPtr

- Pointer to write string descriptor address to

*descriptorLength

- pointer to the size of the descriptor

Returns:

SUCCESS or an Error code according to RETURN_CODE_t