HAL_HCD_HC_GetState() function
Return the Host Channel state.
Arguments
chnum
Channel number. This parameter can be a value from 1 to 15
Return value
Host channel state This parameter can be one of these values: HC_IDLE/ HC_XFRC/ HC_HALTED/ HC_NYET/ HC_NAK/ HC_STALL/ HC_XACTERR/ HC_BBLERR/ HC_DATATGLERR