Lines Matching refs:CANdriverState
74 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()
157 CAN_REG(CANdriverState, C_FIFOBA) = CO_KVA_TO_PA(CANmodule->CANmsgBuff);/* FIFO base address */ in CO_CANmodule_init()
158 …CAN_REG(CANdriverState, C_FIFOCON) = (NO_CAN_RXF==32) ? 0x001F0000 : 0x000F0000; /* FIFO0: rec… in CO_CANmodule_init()
159 CAN_REG(CANdriverState, C_FIFOCON+0x40) = 0x00000080;/* FIFO1: transmit FIFO, 1 buffer */ in CO_CANmodule_init()
174 CAN_REG(CANdriverState, C_CFG) = in CO_CANmodule_init()
186 CAN_REG(CANdriverState, C_FLTCON+i*0x10) = 0x00000000; in CO_CANmodule_init()
192 CAN_REG(CANdriverState, C_RXM) = 0xFFE80000; in CO_CANmodule_init()
193 CAN_REG(CANdriverState, C_RXM+0x10) = 0xFFE80000; in CO_CANmodule_init()
194 CAN_REG(CANdriverState, C_RXM+0x20) = 0xFFE80000; in CO_CANmodule_init()
195 CAN_REG(CANdriverState, C_RXM+0x30) = 0xFFE80000; in CO_CANmodule_init()
201 CAN_REG(CANdriverState, C_RXM) = 0x00080000; in CO_CANmodule_init()
203 CAN_REG(CANdriverState, C_RXF) = 0x00000000; in CO_CANmodule_init()
204 CAN_REG(CANdriverState, C_FLTCON) = 0x00000080; in CO_CANmodule_init()
210 CAN_REG(CANdriverState, C_FIFOINT) = 0x00010000; in CO_CANmodule_init()
212 CAN_REG(CANdriverState, C_FIFOINT+0x40) = 0x00000000; /* will be enabled in CO_CANsend */ in CO_CANmodule_init()
214 CAN_REG(CANdriverState, C_INT) = 0x00030000; in CO_CANmodule_init()
223 CO_CANsetConfigurationMode(CANmodule->CANdriverState); in CO_CANmodule_disable()
267 uint16_t addr = CANmodule->CANdriverState; in CO_CANrxBufferInit()
357 uint16_t addr = CANmodule->CANdriverState; in CO_CANsend()
403 volatile uint32_t* TX_FIFOcon = &CAN_REG(CANmodule->CANdriverState, C_FIFOCON+0x40); in CO_CANclearPendingSyncPDOs()
404 volatile uint32_t* TX_FIFOconClr = &CAN_REG(CANmodule->CANdriverState, C_FIFOCON+0x44); in CO_CANclearPendingSyncPDOs()
445 TREC = CAN_REG(CANmodule->CANdriverState, C_TREC); in CO_CANverifyErrors()
449 overflow = (CAN_REG(CANmodule->CANdriverState, C_FIFOINT)&0x8) ? 1 : 0; in CO_CANverifyErrors()
501 ICODE = (uint8_t) CAN_REG(CANmodule->CANdriverState, C_VEC) & 0x7F; in CO_CANinterrupt()
511 rcvMsg = (CO_CANrxMsg_t*) CO_PA_TO_KVA1(CAN_REG(CANmodule->CANdriverState, C_FIFOUA)); in CO_CANinterrupt()
545 CAN_REG(CANmodule->CANdriverState, C_FIFOCON+0x08) = 0x2000; /* set UINC */ in CO_CANinterrupt()
570 … uint32_t* TXmsgBuffer = CO_PA_TO_KVA1(CAN_REG(CANmodule->CANdriverState, C_FIFOUA+0x40)); in CO_CANinterrupt()
572 … volatile uint32_t* TX_FIFOconSet = &CAN_REG(CANmodule->CANdriverState, C_FIFOCON+0x48); in CO_CANinterrupt()
592 CAN_REG(CANmodule->CANdriverState, C_FIFOINT+0x44) = 0x01000000; in CO_CANinterrupt()