19 #ifndef LIN_DIAGNOSTIC_SERVICE_H
20 #define LIN_DIAGNOSTIC_SERVICE_H
25 #if (SUPPORT_TRANSPORT_LAYER == 1U)
26 #if (SUPPORT_DIAG_SERVICE == 1U)
35 #if (SUPPORT_PROTOCOL_21 == 1U)
36 #if (SUPPORT_MASTER_MODE == 1U)
74 l_u8 *
const error_code);
92 const l_u8 *
const PIDs);
114 #if (SUPPORT_SLAVE_MODE == 1U)
130 l_u8 *
const length);
148 const l_u8 *
const data,
153 #if (SUPPORT_DIAG_CLASS_II == 1U)
168 const l_u8 *
const data);
186 const l_u8 *
const data);
192 #if (SUPPORT_DIAG_CLASS_III == 1U)
207 const l_u8 *
const data);
223 const l_u8 *
const data);
239 const l_u8 *
const data);
255 const l_u8 *
const data);
372 #if (SUPPORT_PROTOCOL_J2602 == 1U)
396 l_u8 *
const error_code);
415 #if (SUPPORT_SLAVE_MODE == 1U)
l_u8 diag_get_flag(l_ifc_handle iii, l_u8 flag_order)
This function will return flag of diagnostic service, if LIN slave node receive master request of the...
void diag_IO_control(l_ifc_handle iii, const l_u8 NAD, l_u16 data_length, const l_u8 *const data)
This function is used for master node only. It will pack data and send request to slave node with ser...
void ld_read_by_id(l_ifc_handle iii, l_u8 NAD, l_u16 supplier_id, l_u16 function_id, l_u8 id, lin_product_id_t *const data)
The call requests the slave node selected with the NAD to return the property associated with the id ...
void diag_fault_memory_read(l_ifc_handle iii, const l_u8 NAD, l_u16 data_length, const l_u8 *const data)
This function is used for master node only. It will pack data and send request to slave node with ser...
void ld_conditional_change_NAD(l_ifc_handle iii, l_u8 NAD, l_u8 id, l_u8 byte_data, l_u8 mask, l_u8 invert, l_u8 new_NAD)
This call changes the NAD if the node properties fulfill the test specified by id, byte, mask and invert. Master node only.
void ld_save_configuration(l_ifc_handle iii, l_u8 NAD)
This function to issue a save configuration request to a slave node.
l_bool ld_is_ready_j2602(l_ifc_handle iii)
Verifies a state of node setting (using for J2602 and LIN 2.0).
l_u8 ld_set_configuration(l_ifc_handle iii, const l_u8 *const data, l_u16 length)
This function configures slave node according to data.
l_bool ld_assign_NAD_j2602(l_ifc_handle iii, l_u8 dnn)
This function assigns NAD of a J2602 slave device based on input DNN that is Device Node Number...
l_u8 ld_check_response_j2602(l_ifc_handle iii, l_u8 *const RSID, l_u8 *const error_code)
Verifies the state of response (using for J2602 and LIN 2.0) Master node only.
void ld_check_response(l_ifc_handle iii, l_u8 *const RSID, l_u8 *const error_code)
This call returns the result of the last node configuration service, in the parameters RSID and error...
l_bool ld_reconfig_msg_ID(l_ifc_handle iii, l_u8 dnn)
This function reconfigures frame identifiers of a J2602 slave node based on input dnn...
Product id structure Implements : lin_product_id_t_Class.
void diag_clear_flag(l_ifc_handle iii, l_u8 flag_order)
This function will clear flag of diagnostic service,.
void diag_write_data_by_identifier(l_ifc_handle iii, const l_u8 NAD, l_u16 data_length, const l_u8 *const data)
Write Data by Identifier for a specified node - Diagnostic Class II service (0x2E) ...
void diag_read_data_by_identifier(l_ifc_handle iii, const l_u8 NAD, const l_u8 *const data)
This function reads data by identifier, Diagnostic Class II service (0x22).
unsigned char l_u8
Unsigned 8 bit integer Implements : l_u8_Class.
void ld_assign_frame_id_range(l_ifc_handle iii, l_u8 NAD, l_u8 start_index, const l_u8 *const PIDs)
This function assigns the protected identifier of up to four frames.
l_u8 ld_read_configuration(l_ifc_handle iii, l_u8 *const data, l_u8 *const length)
This function copies current configuration in a reserved area.
void ld_assign_NAD(l_ifc_handle iii, l_u8 initial_NAD, l_u16 supplier_id, l_u16 function_id, l_u8 new_NAD)
This call assigns the NAD (node diagnostic address) of all slave nodes that matches the initial_NAD...
void ld_assign_frame_id(l_ifc_handle iii, l_u8 NAD, l_u16 supplier_id, l_u16 message_id, l_u8 PID)
This function assigns the protected identifier to a slave node with the address NAD and specified sup...
l_u8 ld_is_ready(l_ifc_handle iii)
This call returns the status of the last requested configuration service.
void diag_fault_memory_clear(l_ifc_handle iii, const l_u8 NAD, l_u16 data_length, const l_u8 *const data)
This function is used for master node only. It will pack data and send request to slave node with ser...
bool l_bool
0 is false, and non-zero (>0) is true Implements : l_bool_Class
unsigned short int l_u16
Unsigned 16 bit integer Implements : l_u16_Class.
void diag_session_control(l_ifc_handle iii, const l_u8 NAD, l_u16 data_length, const l_u8 *const data)
This function is used for master node only. It will pack data and send request to slave node with ser...