Commit Graph

15 Commits (0d2ff901a0e30b0ad498fc28b51bd29d41f3d0a5)

Author SHA1 Message Date
Oleg 0d2ff901a0 Invert digitalIO data. Rename base data types for consistency 1 week ago
Oleg e3653b2d50 Add interrupt handling when bus error occurs
Rename private variables
1 week ago
Oleg f7e8138476 Clean project, rename canSpace to can_space 2 weeks ago
Oleg 8cbdce2192 Add time out feature 1 month ago
Oleg a450de810f Fix some CAN interface argument capacity
1. Change rx and tx function to process Uint64 values, not Uint32
2. Make LSB first as default
1 month ago
Oleg c692668f7b Expand CAN functionality.
1. Add new methods for update and receive. It is become possiple
to work with Uint32.
2. ADD changes in ConfigTX method. It determines data length
of a MBOX now as well
1 month ago
Oleg 07bb5edd57 Change/add methods
1. Change receiveMsg. Now it returns int16 with error identification
2. Change CANMessage structure. Now it only has dataLenght variable
   instead of previos MsgCtrlReg union
3. Change MsgCtrlReg. Add an OPC flag in it
4. Change configRxMBox method. Overwrite protection enabling is
   added
2 months ago
Oleg b884754d93 Add mbox interrupt handling 2 months ago
Oleg 0246107428 Fix compile problem
It started not to compile at all without changing anything manually
Some libs were deleted (because they was added automatically)

Add protection agaist accessing to MBOX with number >31
in transmitMsg method

Add TPL configuration in configTX method

Clear some garbage
2 months ago
Oleg 0efa3cb375 Add changes in init functions
Replace #define to enum for safety reasons

Now config function takes as an arguments not only baudrate, but
flags for most significant bit and self teset mode initialization.
All parameters have a default value now

Add protection against access to MBOX with number > 31 in every
possible functions

Remove some old code
2 months ago
Oleg de707c052a Add error control. Fix config mistakes with TRS reset
Add function for configuring system interrupts
Add interrupt that monitors the following errors:
    EPIM - CAN module has entered “error passive” mode
    WLIM - One or both error counters (TX and RX) are >= 96
    AAIM - A transmission request was aborted
Delete some old code
2 months ago
Oleg fd72d2833b Add remote frames 2 months ago
Oleg dfb90e3ee8 Change config methods. Tested with the second board
Things to be added in the future:
1) Remote requests
2) Possibility to init CAN interrupts
3) Erorrs handling
2 months ago
Oleg 4446eb970a Add RX and TX methods. Change config methods
Must be tested without test mode
2 months ago
Oleg 82df69c385 Split configuarion and communication. Start of RX. 2 months ago