Home
last modified time | relevance | path

Searched refs:CANmodule (Results 1 – 19 of 19) sorted by relevance

/canopennode-2.7.6/stack/drvTemplate/
DCO_driver.c40 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule){ in CO_CANsetNormalMode() argument
43 CANmodule->CANnormal = true; in CO_CANsetNormalMode()
49 CO_CANmodule_t *CANmodule, in CO_CANmodule_init() argument
60 if(CANmodule==NULL || rxArray==NULL || txArray==NULL){ in CO_CANmodule_init()
65 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
66 CANmodule->rxArray = rxArray; in CO_CANmodule_init()
67 CANmodule->rxSize = rxSize; in CO_CANmodule_init()
68 CANmodule->txArray = txArray; in CO_CANmodule_init()
69 CANmodule->txSize = txSize; in CO_CANmodule_init()
70 CANmodule->CANnormal = false; in CO_CANmodule_init()
[all …]
DCO_driver_target.h284 void CO_CANinterrupt(CO_CANmodule_t *CANmodule);
/canopennode-2.7.6/stack/socketCAN/
DCO_driver.c42 static CO_ReturnError_t setFilters(CO_CANmodule_t *CANmodule){ in setFilters() argument
45 if(CANmodule->useCANrxFilters){ in setFilters()
49 nFiltersIn = CANmodule->rxSize; in setFilters()
64 fin = &CANmodule->filter[i]; in setFilters()
77 if(setsockopt(CANmodule->fd, SOL_CAN_RAW, CAN_RAW_FILTER, in setFilters()
87 CANmodule->filter[0].can_id = 0; in setFilters()
88 CANmodule->filter[0].can_mask = 0; in setFilters()
89 if(setsockopt(CANmodule->fd, SOL_CAN_RAW, CAN_RAW_FILTER, in setFilters()
90 &CANmodule->filter[0], sizeof(struct can_filter)) != 0) in setFilters()
106 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule){ in CO_CANsetNormalMode() argument
[all …]
DCO_Linux_tasks.c196 taskRT.fdRx0 = CO->CANmodule[0]->fd; in CANrx_taskTmr_init()
241 CO_CANrxWait(CO->CANmodule[0]); in CANrx_taskTmr_process()
282 if(CO->CANmodule[0]->CANnormal) { in CANrx_taskTmr_process()
DCO_driver_target.h164 void CO_CANrxWait(CO_CANmodule_t *CANmodule);
/canopennode-2.7.6/stack/neuberger-socketCAN/
DCO_driver.c60 static CO_ReturnError_t CO_CANmodule_addInterface(CO_CANmodule_t *CANmodule, const void *CANdriverS…
114 static CO_ReturnError_t disableRx(CO_CANmodule_t *CANmodule) in disableRx() argument
122 for (i = 0; i < CANmodule->CANinterfaceCount; i ++) { in disableRx()
123 ret = setsockopt(CANmodule->CANinterfaces[i].fd, SOL_CAN_RAW, CAN_RAW_FILTER, in disableRx()
127 CANmodule->CANinterfaces[i].ifName); in disableRx()
137 static CO_ReturnError_t setRxFilters(CO_CANmodule_t *CANmodule) in setRxFilters() argument
144 struct can_filter rxFiltersCpy[CANmodule->rxSize]; in setRxFilters()
149 for (i = 0; i < CANmodule->rxSize; i ++) { in setRxFilters()
150 if ((CANmodule->rxFilter[i].can_id != 0) || in setRxFilters()
151 (CANmodule->rxFilter[i].can_mask != 0)) { in setRxFilters()
[all …]
DCO_driver_target.h149 CO_CANmodule_t *CANmodule,
170 CO_CANmodule_t *CANmodule,
200 CO_CANmodule_t *CANmodule,
226 CO_CANmodule_t *CANmodule,
247 CO_CANmodule_t *CANmodule,
269 CO_ReturnError_t CO_CANCheckSend(CO_CANmodule_t *CANmodule, CO_CANtx_t *buffer);
289 int32_t CO_CANrxWait(CO_CANmodule_t *CANmodule, int fdTimer, CO_CANrxMsg_t *buffer);
DCO_Linux_threads.c142 result = CO_CANrxWait(CO->CANmodule[0], threadRT.interval_fd, NULL); in CANrx_threadTmr_process()
149 if(CO->CANmodule[0]->CANnormal) { in CANrx_threadTmr_process()
/canopennode-2.7.6/stack/PIC32/
DCO_driver.c92 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule){ in CO_CANsetNormalMode() argument
95 CAN_REG(CANmodule->CANdriverState, C_CON+CLR) = 0x07000000; in CO_CANsetNormalMode()
98 while((CAN_REG(CANmodule->CANdriverState, C_CON) & 0x00E00000) != 0x00000000); in CO_CANsetNormalMode()
100 CANmodule->CANnormal = true; in CO_CANsetNormalMode()
106 CO_CANmodule_t *CANmodule, in CO_CANmodule_init() argument
117 if(CANmodule==NULL || rxArray==NULL || txArray==NULL){ in CO_CANmodule_init()
122 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
123 CANmodule->CANmsgBuffSize = 33; /* Must be the same as size of CANmodule->CANmsgBuff array. */ in CO_CANmodule_init()
124 CANmodule->rxArray = rxArray; in CO_CANmodule_init()
125 CANmodule->rxSize = rxSize; in CO_CANmodule_init()
[all …]
Dmain_PIC32.c197 CO_CANsetNormalMode(CO->CANmodule[0]); in main()
202 CO_CANsetNormalMode(CO->CANmodule[1]); in main()
279 if(CO->CANmodule[0]->CANnormal) { in __ISR()
319 CO_CANinterrupt(CO->CANmodule[0]); in CO_CAN_ISR()
326 CO_CANinterrupt(CO->CANmodule[1]); in CO_CAN_ISR2()
DCO_driver_target.h349 void CO_CANinterrupt(CO_CANmodule_t *CANmodule);
/canopennode-2.7.6/stack/dsPIC30F/
DCO_driver.c99 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule){ in CO_CANsetNormalMode() argument
100 uint16_t C_CTRLcopy = CAN_REG(CANmodule->CANdriverState, C_CTRL); in CO_CANsetNormalMode()
104 CAN_REG(CANmodule->CANdriverState, C_CTRL) = C_CTRLcopy; in CO_CANsetNormalMode()
107 while((CAN_REG(CANmodule->CANdriverState, C_CTRL) & 0x00E0) != 0x0000); in CO_CANsetNormalMode()
109 CANmodule->CANnormal = true; in CO_CANsetNormalMode()
115 CO_CANmodule_t *CANmodule, in CO_CANmodule_init() argument
126 if(CANmodule==NULL || rxArray==NULL || txArray==NULL){ in CO_CANmodule_init()
131 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
132 CANmodule->rxArray = rxArray; in CO_CANmodule_init()
133 CANmodule->rxSize = rxSize; in CO_CANmodule_init()
[all …]
DCO_driver_target.h368 void CO_CANinterrupt(CO_CANmodule_t *CANmodule);
/canopennode-2.7.6/stack/PIC24_dsPIC33/
DCO_driver.c117 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule){ in CO_CANsetNormalMode() argument
118 uint16_t C_CTRL1copy = CAN_REG(CANmodule->CANdriverState, C_CTRL1); in CO_CANsetNormalMode()
122 CAN_REG(CANmodule->CANdriverState, C_CTRL1) = C_CTRL1copy; in CO_CANsetNormalMode()
125 while((CAN_REG(CANmodule->CANdriverState, C_CTRL1) & 0x00E0) != 0x0000); in CO_CANsetNormalMode()
127 CANmodule->CANnormal = true; in CO_CANsetNormalMode()
133 CO_CANmodule_t *CANmodule, in CO_CANmodule_init() argument
154 if(CANmodule==NULL || rxArray==NULL || txArray==NULL){ in CO_CANmodule_init()
186 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
187 CANmodule->CANmsgBuff = CANmsgBuff; in CO_CANmodule_init()
188 CANmodule->rxArray = rxArray; in CO_CANmodule_init()
[all …]
DCO_driver_target.h428 void CO_CANinterrupt(CO_CANmodule_t *CANmodule);
/canopennode-2.7.6/
DCO_driver.h130 void CO_CANsetNormalMode(CO_CANmodule_t *CANmodule);
151 CO_CANmodule_t *CANmodule,
165 void CO_CANmodule_disable(CO_CANmodule_t *CANmodule);
201 CO_CANmodule_t *CANmodule,
229 CO_CANmodule_t *CANmodule,
247 CO_ReturnError_t CO_CANsend(CO_CANmodule_t *CANmodule, CO_CANtx_t *buffer);
264 void CO_CANclearPendingSyncPDOs(CO_CANmodule_t *CANmodule);
274 void CO_CANverifyErrors(CO_CANmodule_t *CANmodule);
DCANopen.c246 return CO_CANsend(co->CANmodule[0], NMTM_txBuff); /* 0 = success */ in CO_sendNMTcommand()
289 CO->CANmodule[0] = &COO_CANmodule; in CO_new()
332 … CO->CANmodule[0] = (CO_CANmodule_t *) calloc(1, sizeof(CO_CANmodule_t)); in CO_new()
417 if(CO->CANmodule[0] == NULL) errCnt++; in CO_new()
471 CO->CANmodule[0]->CANnormal = false; in CO_CANinit()
475 CO->CANmodule[0], in CO_CANinit()
505 CO->CANmodule[0], in CO_LSSinit()
508 CO->CANmodule[0], in CO_LSSinit()
552 CO->CANmodule[0], in CO_CANopenInit()
554 CO->CANmodule[0], in CO_CANopenInit()
[all …]
DCANopen.h122 CO_CANmodule_t *CANmodule[1]; /**< CAN module objects */ member
/canopennode-2.7.6/example/
Dmain.c84 CO_CANsetNormalMode(CO->CANmodule[0]); in main()
130 if(CO->CANmodule[0]->CANnormal) { in tmrTask_thread()
155 CO_CANinterrupt(CO->CANmodule[0]); in CO_CAN1InterruptHandler()