The simple program below is a summary of all the concepts defined previously.
int main()
{
HMXF_SERVER server;
HMXF_DEVICE device=NULL;
HMXF_MODULE module;
HMXF_CHANNEL tx;
HMXF_BUFFER txBuffer;
uint64 count;
uint32 rc;
if (!rc)
if (!rc)
if (!rc)
if (!rc && count)
if(!rc && !count)
rc = MAXT_ERROR_NOT_FOUND;
if (!rc)
{
uint64 txBufferSize = 10*1024;
}
if (!rc)
{
memset(&rec, 0 , sizeof(rec));
memcpy(&rec.
data[0],
"Hello world", 11);
}
if(!rc)
if (rc)
printf("Error code=0x%lX\n", rc);
return 0;
}