You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hal/api/CAN.h
+22-16Lines changed: 22 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
23
23
#include"can_api.h"
24
24
#include"can_helper.h"
25
-
#include"FunctionPointer.h"
25
+
#include"Callback.h"
26
26
27
27
namespacembed {
28
28
@@ -206,34 +206,40 @@ class CAN {
206
206
/** Attach a function to call whenever a CAN frame received interrupt is
207
207
* generated.
208
208
*
209
-
* @param fptr A pointer to a void function, or 0 to set as none
209
+
* @param func A pointer to a void function, or 0 to set as none
210
210
* @param event Which CAN interrupt to attach the member function to (CAN::RxIrq for message received, CAN::TxIrq for transmitted or aborted, CAN::EwIrq for error warning, CAN::DoIrq for data overrun, CAN::WuIrq for wake-up, CAN::EpIrq for error passive, CAN::AlIrq for arbitration lost, CAN::BeIrq for bus error)
/** Attach a member function to call whenever a CAN frame received interrupt
215
215
* is generated.
216
216
*
217
-
* @param tptr pointer to the object to call the member function on
218
-
* @param mptr pointer to the member function to be called
217
+
* @param obj pointer to the object to call the member function on
218
+
* @param method pointer to the member function to be called
219
219
* @param event Which CAN interrupt to attach the member function to (CAN::RxIrq for message received, TxIrq for transmitted or aborted, EwIrq for error warning, DoIrq for data overrun, WuIrq for wake-up, EpIrq for error passive, AlIrq for arbitration lost, BeIrq for bus error)
/** Attach a member function to call whenever a CAN frame received interrupt
227
+
* is generated.
228
+
*
229
+
* @param obj pointer to the object to call the member function on
230
+
* @param method pointer to the member function to be called
231
+
* @param event Which CAN interrupt to attach the member function to (CAN::RxIrq for message received, TxIrq for transmitted or aborted, EwIrq for error warning, DoIrq for data overrun, WuIrq for wake-up, EpIrq for error passive, AlIrq for arbitration lost, BeIrq for bus error)
0 commit comments