File tree Expand file tree Collapse file tree 11 files changed +20
-84
lines changed Expand file tree Collapse file tree 11 files changed +20
-84
lines changed Original file line number Diff line number Diff line change 31
31
namespace mbed {
32
32
class RawCAN : public CAN {
33
33
public:
34
- RawCAN (PinName rd, PinName td) ;
34
+ using CAN::CAN ;
35
35
36
- /* * Initialize CAN interface and set the frequency
37
- *
38
- * @param rd the read pin
39
- * @param td the transmit pin
40
- * @param hz the bus frequency in hertz
36
+ /* * Overriding lock apis to create unlocked CAN
41
37
*/
42
- RawCAN (PinName rd, PinName td, int hz);
43
38
44
- /* * Initialize CAN interface
45
- *
46
- * @param pinmap reference to structure which holds static pinmap
47
- * @param td the transmit pin
48
- * @param hz the bus frequency in hertz
49
- */
50
-
51
- virtual ~RawCAN () {};
39
+ void lock () override {};
40
+ void unlock () override {};
52
41
53
- /* * Read a CANMessage from the bus.
54
- *
55
- * @param msg A CANMessage to read to.
56
- * @param handle message filter handle (0 for any message)
57
- *
58
- * @returns
59
- * 0 if no message arrived,
60
- * 1 if message arrived
61
- */
62
- int read (CANMessage &msg, int handle = 0 );
63
42
};
64
43
}
65
44
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ struct can_s {
155
155
CAN_HandleTypeDef CanHandle ;
156
156
int index ;
157
157
int hz ;
158
- int rxIrqStatus ;
158
+ int rxIrqEnabled ;
159
159
};
160
160
#endif
161
161
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ struct can_s {
145
145
CAN_HandleTypeDef CanHandle ;
146
146
int index ;
147
147
int hz ;
148
- int rxIrqStatus ;
148
+ int rxIrqEnabled ;
149
149
};
150
150
#endif
151
151
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ struct can_s {
154
154
CAN_HandleTypeDef CanHandle ;
155
155
int index ;
156
156
int hz ;
157
- int rxIrqStatus ;
157
+ int rxIrqEnabled ;
158
158
};
159
159
#endif
160
160
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ struct can_s {
142
142
CAN_HandleTypeDef CanHandle ;
143
143
int index ;
144
144
int hz ;
145
- int rxIrqStatus ;
145
+ int rxIrqEnabled ;
146
146
};
147
147
#endif
148
148
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ struct can_s {
157
157
CAN_HandleTypeDef CanHandle ;
158
158
int index ;
159
159
int hz ;
160
- int rxIrqStatus ;
160
+ int rxIrqEnabled ;
161
161
};
162
162
#endif
163
163
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ struct can_s {
166
166
CAN_HandleTypeDef CanHandle ;
167
167
int index ;
168
168
int hz ;
169
- int rxIrqStatus ;
169
+ int rxIrqEnabled ;
170
170
};
171
171
#endif
172
172
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ struct can_s {
156
156
CAN_HandleTypeDef CanHandle ;
157
157
int index ;
158
158
int hz ;
159
- int rxIrqStatus ;
159
+ int rxIrqEnabled ;
160
160
};
161
161
#endif
162
162
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ struct can_s {
156
156
CAN_HandleTypeDef CanHandle ;
157
157
int index ;
158
158
int hz ;
159
- int rxIrqStatus ;
159
+ int rxIrqEnabled ;
160
160
};
161
161
#endif
162
162
You can’t perform that action at this time.
0 commit comments