Basic feedback endpoint working for class 2

This commit is contained in:
Ed Clarke
2018-10-26 13:39:02 +01:00
parent 6fbbbedc28
commit 1db927601a
2 changed files with 37 additions and 27 deletions

View File

@@ -299,13 +299,15 @@ void XUA_Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
{
#if XUA_LITE
unsigned char sbuffer[120];
unsigned length;
unsigned length = 0;
XUD_Result_t result = XUD_RES_ERR;
//XUD_Result_t result = XUD_GetSetupBuffer(ep0_out, sbuffer, &length); //Flattened from xud_device
XUD_Result_t result = XUD_GetSetupData(ep0_out, sbuffer, &length);//Flattened from XUD_EpFunctions.xc
result = XUD_GetSetupData(ep0_out, sbuffer, &length);//Flattened from XUD_EpFunctions.xc
//Next step:
//void XUD_GetSetupData_Select(chan c,XUD_ep e_out, unsigned &length, XUD_Result_t &result);
// select{
// case XUD_GetSetupData_Select(c_ep0_out, ep0_out, &length, &result):
// break;
if (result == XUD_RES_OKAY)
{