/* Init the ACM module set the max timeout to one hour and the internal
time scale to micro seconds. */
if(ACMInit(&max_timeout, Gcius) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}
/* register timeout handler typically the GciTimeout function */
if(ACMRegisterTimeoutHandler(&GciTimeout) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}
/* register a Receive handler, typically the GciReceive function */
if(ACMRegisterReceiveHandler(&GciReceive) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}