I have an error "HID_SMBUS_INVALID_PARAMETER" return when calling HidSmbus_GetReadResponse() for CP2112.
Below is the setup I have for HidSmbus_GetReadResponse()
uint16_t HidSmbus_GetReadResponse(uintptr_t device, uint8_t *status, uint8_t *buffer, uint8_t bufferSize, uint8_t *numBytesRead);
device = some number, the number is good and confirm because it's working for another function.
bufferSize = 61
anything I need to pay attention when calling HidSmbus_GetReadResponse()?
Hi Black Lin,
Can you show the code you are using to call HidSmbus_GetReadResponse, including declaration and initalization of the parameters? Are status, buffer, and numBytesRead valid pointers?
In addition to device and bufferSize, status, buffer and numBytesRead all need to be valid, too.