Home
last modified time | relevance | path

Searched refs:CANdriverState (Results 1 – 16 of 16) sorted by relevance

/canopennode-3.5.0-3.4.0/stack/PIC24_dsPIC33/
DCO_driver.c103 void CO_CANsetConfigurationMode(void *CANdriverState){ in CO_CANsetConfigurationMode() argument
104 uint16_t C_CTRL1copy = CAN_REG(CANdriverState, C_CTRL1); in CO_CANsetConfigurationMode()
109 CAN_REG(CANdriverState, C_CTRL1) = C_CTRL1copy; in CO_CANsetConfigurationMode()
112 while((CAN_REG(CANdriverState, C_CTRL1) & 0x00E0) != 0x0080); in CO_CANsetConfigurationMode()
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()
134 void *CANdriverState, in CO_CANmodule_init() argument
159 if(CANdriverState == ADDR_CAN1) { in CO_CANmodule_init()
170 else if(((uintptr_t) CANdriverState) == ADDR_CAN2) { in CO_CANmodule_init()
[all …]
DCO_driver_target.h406 void *CANdriverState; member
/canopennode-3.5.0-3.4.0/stack/dsPIC30F/
DCO_driver.c85 void CO_CANsetConfigurationMode(void *CANdriverState){ in CO_CANsetConfigurationMode() argument
86 uint16_t C_CTRLcopy = CAN_REG(CANdriverState, C_CTRL); in CO_CANsetConfigurationMode()
91 CAN_REG(CANdriverState, C_CTRL) = C_CTRLcopy; in CO_CANsetConfigurationMode()
94 while((CAN_REG(CANdriverState, C_CTRL) & 0x00E0) != 0x0080); in CO_CANsetConfigurationMode()
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()
116 void *CANdriverState, in CO_CANmodule_init() argument
131 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
154 CAN_REG(CANdriverState, C_CTRL) = 0x0400; in CO_CANmodule_init()
[all …]
DCO_driver_target.h348 void *CANdriverState; member
/canopennode-3.5.0-3.4.0/stack/PIC32/
DCO_driver.c74 void CO_CANsetConfigurationMode(void *CANdriverState){ in CO_CANsetConfigurationMode() argument
75 uint32_t C_CONcopy = CAN_REG(CANdriverState, C_CON); in CO_CANsetConfigurationMode()
79 CAN_REG(CANdriverState, C_CON) = C_CONcopy; in CO_CANsetConfigurationMode()
84 CAN_REG(CANdriverState, C_CON) = C_CONcopy; in CO_CANsetConfigurationMode()
87 while((CAN_REG(CANdriverState, C_CON) & 0x00E00000) != 0x00800000); in CO_CANsetConfigurationMode()
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()
107 void *CANdriverState, in CO_CANmodule_init() argument
122 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
153 CAN_REG(CANdriverState, C_CON) = 0x04108000; in CO_CANmodule_init()
[all …]
DCO_driver_target.h327 void *CANdriverState; member
/canopennode-3.5.0-3.4.0/stack/neuberger-socketCAN/
DCO_driver.c60 … CO_ReturnError_t CO_CANmodule_addInterface(CO_CANmodule_t *CANmodule, const void *CANdriverState);
181 void CO_CANsetConfigurationMode(void *CANdriverState) in CO_CANsetConfigurationMode() argument
207 void *CANdriverState, in CO_CANmodule_init() argument
280 rxArray[i].CANdriverState = NULL; in CO_CANmodule_init()
288 ret = CO_CANmodule_addInterface(CANmodule, CANdriverState); in CO_CANmodule_init()
305 const void *CANdriverState) in CO_CANmodule_addInterface() argument
334 interface->CANdriverState = CANdriverState; in CO_CANmodule_addInterface()
335 ifName = if_indextoname((uintptr_t)interface->CANdriverState, interface->ifName); in CO_CANmodule_addInterface()
383 sockAddr.can_ifindex = (uintptr_t)interface->CANdriverState; in CO_CANmodule_addInterface()
521 buffer->CANdriverState = NULL; in CO_CANrxBufferInit()
[all …]
DCO_driver_target.h76 const void *CANdriverState; /**< CAN Interface identifier */ member
150 void *CANdriverState,
171 const void *CANdriverState);
DCO_driver_base.h253 const void *CANdriverState; /**< CAN Interface identifier */ member
273 const void *CANdriverState; /**< CAN Interface identifier to use */ member
/canopennode-3.5.0-3.4.0/
DCANopen.h192 void *CANdriverState,
236 void *CANdriverState,
248 void CO_delete(void *CANdriverState);
DCANopen.c184 void *CANdriverState,
197 void *CANdriverState,
466 void *CANdriverState, in CO_CANinit() argument
472 CO_CANsetConfigurationMode(CANdriverState); in CO_CANinit()
476 CANdriverState, in CO_CANinit()
755 void *CANdriverState, in CO_init() argument
766 err = CO_CANinit(CANdriverState, bitRate); in CO_init()
768 CO_delete(CANdriverState); in CO_init()
774 CO_delete(CANdriverState); in CO_init()
783 void CO_delete(void *CANdriverState){ in CO_delete() argument
[all …]
DCO_driver.h122 void CO_CANsetConfigurationMode(void *CANdriverState);
152 void *CANdriverState,
/canopennode-3.5.0-3.4.0/stack/socketCAN/
DCO_driver.c101 void CO_CANsetConfigurationMode(void *CANdriverState){ in CO_CANsetConfigurationMode() argument
118 void *CANdriverState, in CO_CANmodule_init() argument
129 if(CANmodule==NULL || CANdriverState==NULL || rxArray==NULL || txArray==NULL){ in CO_CANmodule_init()
135 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
175 const int * const ifindex_ptr = CANdriverState; in CO_CANmodule_init()
338 canGetErrorCounters(CANmodule->CANdriverState, &rxErrors, &txErrors); in CO_CANverifyErrors()
DCO_driver_target.h135 void *CANdriverState; member
/canopennode-3.5.0-3.4.0/stack/drvTemplate/
DCO_driver.c34 void CO_CANsetConfigurationMode(void *CANdriverState){ in CO_CANsetConfigurationMode() argument
50 void *CANdriverState, in CO_CANmodule_init() argument
65 CANmodule->CANdriverState = CANdriverState; in CO_CANmodule_init()
DCO_driver_target.h252 void *CANdriverState; /**< From CO_CANmodule_init() */ member