/canopennode-2.7.6/stack/ |
D | CO_SDO.c | 62 uint16_t CO_getUint16(const uint8_t data[]){ in CO_getUint16() argument 64 b.u8[0] = data[0]; in CO_getUint16() 65 b.u8[1] = data[1]; in CO_getUint16() 69 uint32_t CO_getUint32(const uint8_t data[]){ in CO_getUint32() argument 71 b.u8[0] = data[0]; in CO_getUint32() 72 b.u8[1] = data[1]; in CO_getUint32() 73 b.u8[2] = data[2]; in CO_getUint32() 74 b.u8[3] = data[3]; in CO_getUint32() 78 void CO_setUint16(uint8_t data[], const uint16_t value){ in CO_setUint16() argument 81 data[0] = b.u8[0]; in CO_setUint16() [all …]
|
D | CO_SDOmaster.c | 107 SDO_C->CANrxData[0] = msg->data[0]; in CO_SDOclient_receive() 108 SDO_C->CANrxData[1] = msg->data[1]; in CO_SDOclient_receive() 109 SDO_C->CANrxData[2] = msg->data[2]; in CO_SDOclient_receive() 110 SDO_C->CANrxData[3] = msg->data[3]; in CO_SDOclient_receive() 111 SDO_C->CANrxData[4] = msg->data[4]; in CO_SDOclient_receive() 112 SDO_C->CANrxData[5] = msg->data[5]; in CO_SDOclient_receive() 113 SDO_C->CANrxData[6] = msg->data[6]; in CO_SDOclient_receive() 114 SDO_C->CANrxData[7] = msg->data[7]; in CO_SDOclient_receive() 122 SDO_C->CANrxData[0] = msg->data[0]; in CO_SDOclient_receive() 136 SDO_C->buffer[SDO_C->dataSizeTransfered++] = msg->data[i]; in CO_SDOclient_receive() [all …]
|
D | CO_LSSslave.c | 40 uint8_t mode = msg->data[1]; in CO_LSSslave_serviceSwitchStateGlobal() 64 CO_memcpySwap4(&value, &msg->data[1]); in CO_LSSslave_serviceSwitchStateSelective() 87 LSSslave->TXbuff->data[0] = CO_LSS_SWITCH_STATE_SEL; in CO_LSSslave_serviceSwitchStateSelective() 88 CO_memset(&LSSslave->TXbuff->data[1], 0, 7); in CO_LSSslave_serviceSwitchStateSelective() 119 nid = msg->data[1]; in CO_LSSslave_serviceConfig() 130 LSSslave->TXbuff->data[0] = CO_LSS_CFG_NODE_ID; in CO_LSSslave_serviceConfig() 131 LSSslave->TXbuff->data[1] = errorCode; in CO_LSSslave_serviceConfig() 133 CO_memset(&LSSslave->TXbuff->data[2], 0, 6); in CO_LSSslave_serviceConfig() 142 tableSelector = msg->data[1]; in CO_LSSslave_serviceConfig() 143 tableIndex = msg->data[2]; in CO_LSSslave_serviceConfig() [all …]
|
D | CO_LSSmaster.c | 87 LSSmaster->CANrxData[0] = msg->data[0]; in CO_LSSmaster_receive() 88 LSSmaster->CANrxData[1] = msg->data[1]; in CO_LSSmaster_receive() 89 LSSmaster->CANrxData[2] = msg->data[2]; in CO_LSSmaster_receive() 90 LSSmaster->CANrxData[3] = msg->data[3]; in CO_LSSmaster_receive() 91 LSSmaster->CANrxData[4] = msg->data[4]; in CO_LSSmaster_receive() 92 LSSmaster->CANrxData[5] = msg->data[5]; in CO_LSSmaster_receive() 93 LSSmaster->CANrxData[6] = msg->data[6]; in CO_LSSmaster_receive() 94 LSSmaster->CANrxData[7] = msg->data[7]; in CO_LSSmaster_receive() 216 CO_memset(&LSSmaster->TXbuff->data[6], 0, 2); in CO_LSSmaster_switchStateSelectInitiate() 217 LSSmaster->TXbuff->data[0] = CO_LSS_SWITCH_STATE_SEL_VENDOR; in CO_LSSmaster_switchStateSelectInitiate() [all …]
|
D | CO_PDO.c | 54 RPDO->CANrxData[1][0] = msg->data[0]; in CO_PDO_receive() 55 RPDO->CANrxData[1][1] = msg->data[1]; in CO_PDO_receive() 56 RPDO->CANrxData[1][2] = msg->data[2]; in CO_PDO_receive() 57 RPDO->CANrxData[1][3] = msg->data[3]; in CO_PDO_receive() 58 RPDO->CANrxData[1][4] = msg->data[4]; in CO_PDO_receive() 59 RPDO->CANrxData[1][5] = msg->data[5]; in CO_PDO_receive() 60 RPDO->CANrxData[1][6] = msg->data[6]; in CO_PDO_receive() 61 RPDO->CANrxData[1][7] = msg->data[7]; in CO_PDO_receive() 67 RPDO->CANrxData[0][0] = msg->data[0]; in CO_PDO_receive() 68 RPDO->CANrxData[0][1] = msg->data[1]; in CO_PDO_receive() [all …]
|
D | CO_Emergency.c | 48 CO_memcpySwap2(&errorCode, &msg->data[0]); in CO_EM_receive() 49 CO_memcpySwap4(&infoCode, &msg->data[4]); in CO_EM_receive() 52 msg->data[2], in CO_EM_receive() 53 msg->data[3], in CO_EM_receive() 70 value = ODF_arg->data[0]; in CO_ODF_1003() 77 ODF_arg->data[0] = noOfErrors; in CO_ODF_1003() 117 value = CO_getUint32(ODF_arg->data); in CO_ODF_1014() 121 CO_setUint32(ODF_arg->data, value + *nodeId); in CO_ODF_1014() 290 CO_memcpy(emPr->CANtxBuff->data, em->bufReadPtr, 8U); in CO_EM_process()
|
D | CO_SDO.h | 546 uint8_t *data; member 699 uint16_t CO_getUint16(const uint8_t data[]); 708 uint32_t CO_getUint32(const uint8_t data[]); 717 void CO_setUint16(uint8_t data[], const uint16_t value); 726 void CO_setUint32(uint8_t data[], const uint32_t value);
|
D | CO_SYNC.c | 58 SYNC->counter = msg->data[0]; in CO_SYNC_receive() 83 value = CO_getUint32(ODF_arg->data); in CO_ODF_1005() 155 value = CO_getUint32(ODF_arg->data); in CO_ODF_1006() 188 value = ODF_arg->data[0]; in CO_ODF_1019() 325 SYNC->CANtxBuff->data[0] = SYNC->counter; in CO_SYNC_process()
|
D | CO_trace.c | 181 CO_setUint32(ODF_arg->data, trace->bufferSize); in CO_ODF_traceConfig() 187 uint8_t *value = (uint8_t*) ODF_arg->data; in CO_ODF_traceConfig() 193 uint8_t *value = (uint8_t*) ODF_arg->data; in CO_ODF_traceConfig() 254 CO_setUint32(ODF_arg->data, wp - rp); in CO_ODF_trace() 257 CO_setUint32(ODF_arg->data, size - rp + wp); in CO_ODF_trace() 261 if(CO_getUint32(ODF_arg->data) == 0) { in CO_ODF_trace() 300 s = (char*) ODF_arg->data; in CO_ODF_trace()
|
D | CO_TIME.c | 44 CO_memcpy((uint8_t*)&TIME->Time.ullValue, msg->data, msg->DLC); in CO_TIME_receive() 144 … CO_memcpy(TIME->TXbuff->data, (const uint8_t*)&TIME->Time.ullValue, TIME_MSG_LENGTH); in CO_TIME_process()
|
D | CO_NMT_Heartbeat.c | 45 nodeId = msg->data[1]; in CO_NMT_receive() 48 uint8_t command = msg->data[0]; in CO_NMT_receive() 222 NMT->HB_TXbuff->data[0] = NMT->operatingState; in CO_NMT_process()
|
D | CO_HBconsumer.c | 44 HBconsNode->NMTstate = (CO_NMT_internalState_t)msg->data[0]; in CO_HBcons_receive() 113 value = CO_getUint32(ODF_arg->data); in CO_ODF_1016()
|
/canopennode-2.7.6/stack/PIC32/ |
D | eeprom.c | 44 static void EE_writeByteNoWait(uint8_t data, uint32_t addr); 46 static void EE_writeBlock(uint8_t *data, uint32_t addr, uint32_t len); 47 static void EE_readBlock(uint8_t *data, uint32_t addr, uint32_t len); 48 static uint8_t EE_verifyBlock(uint8_t *data, uint32_t addr, uint32_t len); 49 static void EE_writeStatus(uint8_t data); 63 value = CO_getUint32(ODF_arg->data); in CO_ODF_1010() 67 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1010() 115 value = CO_getUint32(ODF_arg->data); in CO_ODF_1011() 119 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1011() 333 static void EE_writeByteNoWait(uint8_t data, uint32_t addr){ in EE_writeByteNoWait() argument [all …]
|
D | CO_driver_target.h | 302 uint8_t data[8]; /* 8 data bytes */ member 319 uint8_t data[8]; member
|
/canopennode-2.7.6/stack/neuberger-socketCAN/ |
D | CO_error.c | 126 if ((msg->data[1] & CAN_ERR_CRTL_RX_PASSIVE) != 0) { in CO_CANerrorCrtl() 129 else if ((msg->data[1] & CAN_ERR_CRTL_TX_PASSIVE) != 0) { in CO_CANerrorCrtl() 132 else if ((msg->data[1] & CAN_ERR_CRTL_RX_OVERFLOW) != 0) { in CO_CANerrorCrtl() 135 else if ((msg->data[1] & CAN_ERR_CRTL_TX_OVERFLOW) != 0) { in CO_CANerrorCrtl() 138 else if ((msg->data[1] & CAN_ERR_CRTL_RX_WARNING) != 0) { in CO_CANerrorCrtl() 141 else if ((msg->data[1] & CAN_ERR_CRTL_TX_WARNING) != 0) { in CO_CANerrorCrtl() 144 else if ((msg->data[1] & CAN_ERR_CRTL_ACTIVE) != 0) { in CO_CANerrorCrtl() 272 msg->data[0], msg->data[1], msg->data[2], msg->data[3], in CO_CANerror_rxMsgError() 273 msg->data[4], msg->data[5], msg->data[6], msg->data[7], in CO_CANerror_rxMsgError()
|
D | CO_driver.c | 240 ev.data.fd = CO_NotifyPipeGetFd(CANmodule->pipe); in CO_CANmodule_init() 241 ret = epoll_ctl(CANmodule->fdEpoll, EPOLL_CTL_ADD, ev.data.fd, &ev); in CO_CANmodule_init() 411 ev.data.fd = interface->fd; in CO_CANmodule_addInterface() 412 ret = epoll_ctl(CANmodule->fdEpoll, EPOLL_CTL_ADD, ev.data.fd, &ev); in CO_CANmodule_addInterface() 901 ev[0].data.fd = fdTimer; in CO_CANrxWait() 902 ret = epoll_ctl(CANmodule->fdEpoll, EPOLL_CTL_ADD, ev[0].data.fd, &ev[0]); in CO_CANrxWait() 926 recv(ev[0].data.fd, &msg, sizeof(msg), MSG_DONTWAIT); in CO_CANrxWait() 932 if ((ev[0].data.fd == CO_NotifyPipeGetFd(CANmodule->pipe)) || in CO_CANrxWait() 933 (ev[0].data.fd == fdTimer)) { in CO_CANrxWait() 944 if (ev[0].data.fd == interface->fd) { in CO_CANrxWait()
|
D | CO_driver_base.h | 239 uint8_t data[8]; /**< 8 data bytes */ member 267 uint8_t data[8]; /**< 8 data bytes */ member
|
/canopennode-2.7.6/stack/drvTemplate/ |
D | eeprom.c | 48 value = CO_getUint32(ODF_arg->data); in CO_ODF_1010() 52 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1010() 85 value = CO_getUint32(ODF_arg->data); in CO_ODF_1011() 89 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1011()
|
D | CO_driver_target.h | 220 uint8_t data[8]; /**< 8 data bytes */ member 241 uint8_t data[8]; /**< 8 data bytes */ member
|
/canopennode-2.7.6/stack/socketCAN/ |
D | CO_Linux_tasks.c | 85 ev.data.fd = taskMain.fdPipe[0]; in taskMain_init() 90 ev.data.fd = taskMain.fdTmr; in taskMain_init() 204 ev.data.fd = taskRT.fdRx0; in CANrx_taskTmr_init() 209 ev.data.fd = taskRT.fdTmr; in CANrx_taskTmr_init()
|
D | CO_driver_target.h | 110 uint8_t data[8] __attribute__((aligned(8))); member 127 uint8_t data[8] __attribute__((aligned(8))); member
|
D | CO_OD_storage.c | 48 value = CO_getUint32(ODF_arg->data); in CO_ODF_1010() 52 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1010() 78 value = CO_getUint32(ODF_arg->data); in CO_ODF_1011() 82 CO_memcpy(ODF_arg->data, (const uint8_t*)ODF_arg->ODdataStorage, 4U); in CO_ODF_1011()
|
/canopennode-2.7.6/stack/dsPIC30F/ |
D | CO_driver_target.h | 321 uint8_t data[8]; /* 8 data bytes */ member 340 uint8_t data[8]; member
|
/canopennode-2.7.6/stack/PIC24_dsPIC33/ |
D | CO_driver_target.h | 378 uint8_t data[8]; /* 8 data bytes */ member 398 uint8_t data[8]; member
|
/canopennode-2.7.6/ |
D | README.md | 110 | data to target | | - Copy inputs (RPDOs, | | - Emergency, | 158 - **CO_SDO.h/.c** - CANopen SDO server object. It serves data from Object dictionary. 159 …- **CO_PDO.h/.c** - CANopen PDO object. It configures, receives and transmits CANopen process data. 190 - _ **project.xml** - XML file contains all data for CANopen Object dictionary.
|