Skip to content

Commit 314dc5a

Browse files
Version 2.1.15
1 parent c424fbe commit 314dc5a

10 files changed

+239
-239
lines changed

extras/acan2517FD.pdf

307 Bytes
Binary file not shown.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ACAN2517FD
2-
version=2.1.14
2+
version=2.1.15
33
author=Pierre Molinaro
44
maintainer=Pierre Molinaro <Pierre.Molinaro@pcmolinaro.name>
55
sentence=Driver for MCP2517FD and MCP2518FD CAN Controller (CAN FD mode)

src/ACAN2517FD.h

Lines changed: 45 additions & 45 deletions
Large diffs are not rendered by default.

src/ACAN2517FDFilters.h

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
//----------------------------------------------------------------------------------------------------------------------
1+
//------------------------------------------------------------------------------
22
// An utility class for:
33
// - ACAN2517FD CAN driver for MCP2517FD (CANFD mode)
44
// by Pierre Molinaro
55
// https://github.com/pierremolinaro/acan2517FD
66
//
7-
//----------------------------------------------------------------------------------------------------------------------
7+
//------------------------------------------------------------------------------
88

99
#ifndef ACAN2517FD_FILTERS_CLASS_DEFINED
1010
#define ACAN2517FD_FILTERS_CLASS_DEFINED
1111

12-
//----------------------------------------------------------------------------------------------------------------------
12+
//------------------------------------------------------------------------------
1313

1414
#include <ACAN2517FD_CANFDMessage.h>
1515

16-
//----------------------------------------------------------------------------------------------------------------------
16+
//------------------------------------------------------------------------------
1717
// ACAN2517FDFilters class
18-
//----------------------------------------------------------------------------------------------------------------------
18+
//------------------------------------------------------------------------------
1919

2020
class ACAN2517FDFilters {
2121

22-
//······················································································································
22+
//------------------------------------------------------------------------------
2323
// EMBEDDED CLASS
24-
//······················································································································
24+
//------------------------------------------------------------------------------
2525

2626
private: class Filter {
2727
public: Filter * mNextFilter ;
@@ -43,9 +43,9 @@ class ACAN2517FDFilters {
4343
private: Filter & operator = (const Filter &) ;
4444
} ;
4545

46-
//······················································································································
46+
//------------------------------------------------------------------------------
4747
// ENUMERATED TYPE
48-
//······················································································································
48+
//------------------------------------------------------------------------------
4949

5050
public: typedef enum {
5151
kFiltersOk,
@@ -58,15 +58,15 @@ class ACAN2517FDFilters {
5858
kInconsistencyBetweenMaskAndAcceptance
5959
} FilterStatus ;
6060

61-
//······················································································································
61+
//------------------------------------------------------------------------------
6262
// CONSTRUCTOR
63-
//······················································································································
63+
//------------------------------------------------------------------------------
6464

6565
public: ACAN2517FDFilters (void) {}
6666

67-
//······················································································································
67+
//------------------------------------------------------------------------------
6868
// DESTRUCTOR
69-
//······················································································································
69+
//------------------------------------------------------------------------------
7070

7171
public: ~ ACAN2517FDFilters (void) {
7272
while (mFirstFilter != NULL) {
@@ -76,9 +76,9 @@ class ACAN2517FDFilters {
7676
}
7777
}
7878

79-
//······················································································································
79+
//------------------------------------------------------------------------------
8080
// RECEIVE FILTERS
81-
//······················································································································
81+
//------------------------------------------------------------------------------
8282

8383
public: void appendPassAllFilter (const ACANFDCallBackRoutine inCallBackRoutine) { // Accept any frame
8484
Filter * f = new Filter (0, 0, inCallBackRoutine) ;
@@ -91,7 +91,7 @@ class ACAN2517FDFilters {
9191
mFilterCount += 1 ;
9292
}
9393

94-
//······················································································································
94+
//------------------------------------------------------------------------------
9595

9696
public: void appendFormatFilter (const tFrameFormat inFormat, // Accept any identifier
9797
const ACANFDCallBackRoutine inCallBackRoutine) {
@@ -107,7 +107,7 @@ class ACAN2517FDFilters {
107107
mFilterCount += 1 ;
108108
}
109109

110-
//······················································································································
110+
//------------------------------------------------------------------------------
111111

112112
public: void appendFrameFilter (const tFrameFormat inFormat,
113113
const uint32_t inIdentifier,
@@ -141,7 +141,7 @@ class ACAN2517FDFilters {
141141
mFilterCount += 1 ;
142142
}
143143

144-
//······················································································································
144+
//------------------------------------------------------------------------------
145145

146146
public: void appendFilter (const tFrameFormat inFormat,
147147
const uint32_t inMask,
@@ -196,43 +196,43 @@ class ACAN2517FDFilters {
196196
mFilterCount += 1 ;
197197
}
198198

199-
//······················································································································
199+
//------------------------------------------------------------------------------
200200
// ACCESSORS
201-
//······················································································································
201+
//------------------------------------------------------------------------------
202202

203203
public: FilterStatus filterStatus (void) const { return mFilterStatus ; }
204204

205205
public: uint8_t filterErrorIndex (void) const { return mFilterErrorIndex ; }
206206

207207
public: uint8_t filterCount (void) const { return mFilterCount ; }
208208

209-
//······················································································································
209+
//------------------------------------------------------------------------------
210210
// PRIVATE PROPERTIES
211-
//······················································································································
211+
//------------------------------------------------------------------------------
212212

213213
private: uint8_t mFilterCount = 0 ;
214214
private: Filter * mFirstFilter = NULL ;
215215
private: Filter * mLastFilter = NULL ;
216216
private: FilterStatus mFilterStatus = kFiltersOk ;
217217
private: uint8_t mFilterErrorIndex = 0 ;
218218

219-
//······················································································································
219+
//------------------------------------------------------------------------------
220220
// NO COPY
221-
//······················································································································
221+
//------------------------------------------------------------------------------
222222

223223
private: ACAN2517FDFilters (const ACAN2517FDFilters &) = delete ;
224224
private: ACAN2517FDFilters & operator = (const ACAN2517FDFilters &) = delete ;
225225

226-
//······················································································································
226+
//------------------------------------------------------------------------------
227227
// Friend
228-
//······················································································································
228+
//------------------------------------------------------------------------------
229229

230230
friend class ACAN2517FD ;
231231

232-
//······················································································································
232+
//------------------------------------------------------------------------------
233233

234234
} ;
235235

236-
//----------------------------------------------------------------------------------------------------------------------
236+
//------------------------------------------------------------------------------
237237

238238
#endif

0 commit comments

Comments
 (0)