Attach a function to call whenever a CAN frame received interrupt is generated.
template<typename T >
MBED_DEPRECATED_SINCE ("mbed-os-5.1","The attach function does not support cv-qualifiers. Replaced by ""attach(callback(obj, method), type).") void attach(T *obj
Attach a member function to call whenever a CAN frame received interrupt is generated.
Detailed Description
A can bus client, used for communicating with can devices.
Attach a function to call whenever a CAN frame received interrupt is generated.
Parameters:
func
A pointer to a void function, or 0 to set as none
type
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)
"The attach function does not support cv-qualifiers. Replaced by ""attach(callback(obj, method), type)."
)
Attach a member function to call whenever a CAN frame received interrupt is generated.
Parameters:
obj
pointer to the object to call the member function on
method
pointer to the member function to be called
type
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)
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.