LIN Middleware
User Provided Call-Outs

General Description

Functions

l_irqmask l_sys_irq_disable (const mtb_stc_lin_context_t *context)
 Disables the LIN communication interrupts. More...
 
void l_sys_irq_restore (l_irqmask previous, const mtb_stc_lin_context_t *context)
 Restores the interrupt level identified by the provided parameter. More...
 

Function Documentation

◆ l_sys_irq_disable()

l_irqmask l_sys_irq_disable ( const mtb_stc_lin_context_t context)

Disables the LIN communication interrupts.

Note
The function shall only be called after l_ifc_init().
If the bus inactivity feature is enabled, this function disables the SysTick interrupt. This will affect all the applications that use SysTick.
Parameters
contextThe pointer to the context structure mtb_stc_lin_context_t allocated by the user. This structure is used during LIN Slave operation for internal configuration and data retention. The user must not modify anything in this structure.
Returns
The state of the LIN communication interrupts.

◆ l_sys_irq_restore()

void l_sys_irq_restore ( l_irqmask  previous,
const mtb_stc_lin_context_t context 
)

Restores the interrupt level identified by the provided parameter.

Note
The function shall only be called after l_ifc_init().
Parameters
previousThe interrupt state reported by l_sys_irq_disable().
contextThe pointer to the context structure mtb_stc_lin_context_t allocated by the user. This structure is used during LIN Slave operation for internal configuration and data retention. The user must not modify anything in this structure.