riot_sys

Function shared_irq_register_i2c

Source
pub unsafe extern "C" fn shared_irq_register_i2c(
    bus: *mut NRF_TWIM_Type,
    cb: shared_irq_cb_t,
    arg: *mut c_void,
)
Expand description

@brief Register an I2C IRQ handler for a shared UART/I2C/SPI irq vector

@param bus bus to register the IRQ handler on @param cb callback to call on IRQ @param arg Argument to pass to the handler