294 /** Attach a function to call whenever a CAN frame received interrupt is
295 * generated.
296 *
297 * This function locks the deep sleep while a callback is attached
298 *
299 * @param func A pointer to a void function, or 0 to set as none
300 * @param 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)
301 */
302void attach(Callback<void()> func, IrqType type = RxIrq);
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.