/*
 * msp_BJ_Auto_IPC.h
 *
 *  Created on: Feb 1, 2024
 *      Author: Administrator
 */

#ifndef INC_MSP_MSP_BJ_AUTO_IPC_H_
#define INC_MSP_MSP_BJ_AUTO_IPC_H_

#include "BSP/bsp_include.h"



typedef struct
 {

	int16_t Weld_status;

	int16_t Start_Detection;
	int16_t Arrived_Collection;

	int16_t Battery_level;
	int16_t Laser_Rang_Value;

	int16_t Offset_angle[2];//[0] bais_mm; [1] bais_angle_rad/1000;

	int16_t Weld_fault_signal;

	uint8_t Weld_Dete_Res[40];

	uint8_t Weld_Dete_Res_IPC[40];

	uint8_t IPC_State[100];
	uint8_t Collection_Completed;

 }SP_MSP_Controller_IPC_parameters;

uint8_t GF_MSP_BJ_IPC_Init(UART_HandleTypeDef* huart,SP_MSP_Controller_IPC_parameters *_Control_IPC);

void GF_MSP_Cont_T_IPC_Value(int16_t battery_Level, int16_t Distance_Val[], int16_t Weld_Sequence, int16_t Arrival_Signal,int16_t Start_Signal, uint8_t Ship_Weld_mARK[]);
#endif /* INC_MSP_MSP_BJ_AUTO_IPC_H_ */
