Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 29) sorted by relevance

12

/canopennode-2.7.6/stack/
DCO_SDO.c62 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 …]
DCO_SDOmaster.c107 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 …]
DCO_LSSslave.c40 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 …]
DCO_LSSmaster.c87 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 …]
DCO_PDO.c54 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 …]
DCO_Emergency.c48 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()
DCO_SDO.h546 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);
DCO_SYNC.c58 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()
DCO_trace.c181 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()
DCO_TIME.c44 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()
DCO_NMT_Heartbeat.c45 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()
DCO_HBconsumer.c44 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/
Deeprom.c44 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 …]
DCO_driver_target.h302 uint8_t data[8]; /* 8 data bytes */ member
319 uint8_t data[8]; member
/canopennode-2.7.6/stack/neuberger-socketCAN/
DCO_error.c126 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()
DCO_driver.c240 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()
DCO_driver_base.h239 uint8_t data[8]; /**< 8 data bytes */ member
267 uint8_t data[8]; /**< 8 data bytes */ member
/canopennode-2.7.6/stack/drvTemplate/
Deeprom.c48 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()
DCO_driver_target.h220 uint8_t data[8]; /**< 8 data bytes */ member
241 uint8_t data[8]; /**< 8 data bytes */ member
/canopennode-2.7.6/stack/socketCAN/
DCO_Linux_tasks.c85 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()
DCO_driver_target.h110 uint8_t data[8] __attribute__((aligned(8))); member
127 uint8_t data[8] __attribute__((aligned(8))); member
DCO_OD_storage.c48 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/
DCO_driver_target.h321 uint8_t data[8]; /* 8 data bytes */ member
340 uint8_t data[8]; member
/canopennode-2.7.6/stack/PIC24_dsPIC33/
DCO_driver_target.h378 uint8_t data[8]; /* 8 data bytes */ member
398 uint8_t data[8]; member
/canopennode-2.7.6/
DREADME.md110 | 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.

12