LIN Middleware

General Description

Functions

l_bool l_flg_tst (l_flag_handle fff, const mtb_stc_lin_context_t *context)
 Returns a C boolean indicating the current state of the flag specified by the name fff. More...
 
void l_flg_clr (l_flag_handle fff, const mtb_stc_lin_context_t *context)
 Sets the current value of the flag specified by the name fff to zero. More...
 

Function Documentation

◆ l_flg_tst()

l_bool l_flg_tst ( l_flag_handle  fff,
const mtb_stc_lin_context_t context 
)

Returns a C boolean indicating the current state of the flag specified by the name fff.

i.e. returns zero if the flag is cleared, non-zero otherwise.

Parameters
fffThe name of the flag handle. See l_flag_handle.
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
Returns a C boolean indicating the current state of the flag specified by the name fff: "false" - if the flag is cleared. "true" - if the flag is not cleared.

◆ l_flg_clr()

void l_flg_clr ( l_flag_handle  fff,
const mtb_stc_lin_context_t context 
)

Sets the current value of the flag specified by the name fff to zero.

Parameters
fffThe name of the flag handle. See l_flag_handle.
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.