Lines Matching refs:CO

48     CO_t *CO = NULL;  variable
286 CO = &COO; in CO_new()
288 CO_memset((uint8_t*)CO, 0, sizeof(CO_t)); in CO_new()
289 CO->CANmodule[0] = &COO_CANmodule; in CO_new()
293 CO->SDO[i] = &COO_SDO[i]; in CO_new()
295 CO->em = &COO_EM; in CO_new()
296 CO->emPr = &COO_EMpr; in CO_new()
297 CO->NMT = &COO_NMT; in CO_new()
299 CO->SYNC = &COO_SYNC; in CO_new()
302 CO->TIME = &COO_TIME; in CO_new()
305 CO->RPDO[i] = &COO_RPDO[i]; in CO_new()
307 CO->TPDO[i] = &COO_TPDO[i]; in CO_new()
308 CO->HBcons = &COO_HBcons; in CO_new()
311 CO->LSSslave = &CO0_LSSslave; in CO_new()
314 CO->LSSmaster = &CO0_LSSmaster; in CO_new()
318 CO->SDOclient[i] = &COO_SDOclient[i]; in CO_new()
323 CO->trace[i] = &COO_trace[i]; in CO_new()
330 if(CO == NULL){ /* Use malloc only once */ in CO_new()
331 CO = &COO; in CO_new()
332CO->CANmodule[0] = (CO_CANmodule_t *) calloc(1, sizeof(CO_CANmodule_t)); in CO_new()
336 CO->SDO[i] = (CO_SDO_t *) calloc(1, sizeof(CO_SDO_t)); in CO_new()
339 CO->em = (CO_EM_t *) calloc(1, sizeof(CO_EM_t)); in CO_new()
340 CO->emPr = (CO_EMpr_t *) calloc(1, sizeof(CO_EMpr_t)); in CO_new()
341 CO->NMT = (CO_NMT_t *) calloc(1, sizeof(CO_NMT_t)); in CO_new()
343 CO->SYNC = (CO_SYNC_t *) calloc(1, sizeof(CO_SYNC_t)); in CO_new()
346 CO->TIME = (CO_TIME_t *) calloc(1, sizeof(CO_TIME_t)); in CO_new()
349 CO->RPDO[i] = (CO_RPDO_t *) calloc(1, sizeof(CO_RPDO_t)); in CO_new()
352 CO->TPDO[i] = (CO_TPDO_t *) calloc(1, sizeof(CO_TPDO_t)); in CO_new()
354CO->HBcons = (CO_HBconsumer_t *) calloc(1, sizeof(CO_HBconsumer_t)); in CO_new()
357CO->LSSslave = (CO_LSSslave_t *) calloc(1, sizeof(CO_LSSslave_t)); in CO_new()
360CO->LSSmaster = (CO_LSSmaster_t *) calloc(1, sizeof(CO_LSSmaster_t)); in CO_new()
364CO->SDOclient[i] = (CO_SDOclient_t *) calloc(1, sizeof(CO_SDOclient_t)); in CO_new()
369 CO->trace[i] = (CO_trace_t *) calloc(1, sizeof(CO_trace_t)); in CO_new()
417 if(CO->CANmodule[0] == NULL) errCnt++; in CO_new()
421 if(CO->SDO[i] == NULL) errCnt++; in CO_new()
424 if(CO->em == NULL) errCnt++; in CO_new()
425 if(CO->emPr == NULL) errCnt++; in CO_new()
426 if(CO->NMT == NULL) errCnt++; in CO_new()
428 if(CO->SYNC == NULL) errCnt++; in CO_new()
431 if(CO->TIME == NULL) errCnt++; in CO_new()
434 if(CO->RPDO[i] == NULL) errCnt++; in CO_new()
437 if(CO->TPDO[i] == NULL) errCnt++; in CO_new()
439 if(CO->HBcons == NULL) errCnt++; in CO_new()
442 if(CO->LSSslave == NULL) errCnt++; in CO_new()
445 if(CO->LSSmaster == NULL) errCnt++; in CO_new()
449 if(CO->SDOclient[i] == NULL) errCnt++; in CO_new()
454 if(CO->trace[i] == NULL) errCnt++; in CO_new()
471 CO->CANmodule[0]->CANnormal = false; in CO_CANinit()
475 CO->CANmodule[0], in CO_CANinit()
501 CO->LSSslave, in CO_LSSinit()
505 CO->CANmodule[0], in CO_LSSinit()
508 CO->CANmodule[0], in CO_LSSinit()
543 CO->SDO[i], in CO_CANopenInit()
547 i==0 ? 0 : CO->SDO[0], in CO_CANopenInit()
552 CO->CANmodule[0], in CO_CANopenInit()
554 CO->CANmodule[0], in CO_CANopenInit()
562 CO->em, in CO_CANopenInit()
563 CO->emPr, in CO_CANopenInit()
564 CO->SDO[0], in CO_CANopenInit()
570 CO->CANmodule[0], in CO_CANopenInit()
572 CO->CANmodule[0], in CO_CANopenInit()
580 CO->NMT, in CO_CANopenInit()
581 CO->emPr, in CO_CANopenInit()
584 CO->CANmodule[0], in CO_CANopenInit()
587 CO->CANmodule[0], in CO_CANopenInit()
596 CO->CANmodule[0], /* pointer to CAN module used for sending this message */ in CO_CANopenInit()
605 CO->LSSmaster, in CO_CANopenInit()
607 CO->CANmodule[0], in CO_CANopenInit()
610 CO->CANmodule[0], in CO_CANopenInit()
620 CO->SYNC, in CO_CANopenInit()
621 CO->em, in CO_CANopenInit()
622 CO->SDO[0], in CO_CANopenInit()
623 &CO->NMT->operatingState, in CO_CANopenInit()
627 CO->CANmodule[0], in CO_CANopenInit()
629 CO->CANmodule[0], in CO_CANopenInit()
637 CO->TIME, in CO_CANopenInit()
638 CO->em, in CO_CANopenInit()
639 CO->SDO[0], in CO_CANopenInit()
640 &CO->NMT->operatingState, in CO_CANopenInit()
643 CO->CANmodule[0], in CO_CANopenInit()
645 CO->CANmodule[0], in CO_CANopenInit()
652 CO_CANmodule_t *CANdevRx = CO->CANmodule[0]; in CO_CANopenInit()
656 CO->RPDO[i], in CO_CANopenInit()
657 CO->em, in CO_CANopenInit()
658 CO->SDO[0], in CO_CANopenInit()
659 CO->SYNC, in CO_CANopenInit()
660 &CO->NMT->operatingState, in CO_CANopenInit()
676 CO->TPDO[i], in CO_CANopenInit()
677 CO->em, in CO_CANopenInit()
678 CO->SDO[0], in CO_CANopenInit()
679 CO->SYNC, in CO_CANopenInit()
680 &CO->NMT->operatingState, in CO_CANopenInit()
688 CO->CANmodule[0], in CO_CANopenInit()
696 CO->HBcons, in CO_CANopenInit()
697 CO->em, in CO_CANopenInit()
698 CO->SDO[0], in CO_CANopenInit()
702 CO->CANmodule[0], in CO_CANopenInit()
713 CO->SDOclient[i], in CO_CANopenInit()
714 CO->SDO[0], in CO_CANopenInit()
716 CO->CANmodule[0], in CO_CANopenInit()
718 CO->CANmodule[0], in CO_CANopenInit()
730 CO->trace[i], in CO_CANopenInit()
731 CO->SDO[0], in CO_CANopenInit()
789 CO_CANmodule_disable(CO->CANmodule[0]); in CO_delete()
794 free(CO->trace[i]); in CO_delete()
801 free(CO->SDOclient[i]); in CO_delete()
805 free(CO->LSSslave); in CO_delete()
808 free(CO->LSSmaster); in CO_delete()
811 free(CO->HBcons); in CO_delete()
813 free(CO->RPDO[i]); in CO_delete()
816 free(CO->TPDO[i]); in CO_delete()
819 free(CO->SYNC); in CO_delete()
822 free(CO->TIME); in CO_delete()
824 free(CO->NMT); in CO_delete()
825 free(CO->emPr); in CO_delete()
826 free(CO->em); in CO_delete()
829 free(CO->SDO[i]); in CO_delete()
833 free(CO->CANmodule[0]); in CO_delete()
834 CO = NULL; in CO_delete()