/*
 * data_1553.h
 *
 *  Created on: 11/set/2023
 *      Author: CHESSAA
 */

#ifndef DATA_1553_H_
#define DATA_1553_H_

#if 0
struct avionics_adaptor_message_store_t
{
	uint32_t tag;
	//RX
	uint32_t att[9];
	uint16_t a1[32];//icd1553::msg_rdr_settings_and_parameters_trait::wc];
	uint16_t a2[32];//icd1553::msg_rdr_operation_command_trait::wc];
	uint16_t a3[32];//icd1553::msg_graphic_setting_trait::wc];
	uint16_t a4[32];//icd1553::msg_nav_data_and_cursor_trait::wc];
	uint16_t a5[32];//icd1553::msg_inu_high_speed_trait::wc];
	uint16_t a7[32];//icd1553::msg1_data_link_target_trait::wc];
	uint16_t a8[32];//icd1553::msg2_data_link_target_trait::wc];
	uint16_t x1[32];//icd1553::msg_dev0_reserved_trait::wc];

	uint32_t btt[32];

	uint16_t b1[32];//icd1553::tws_status_and_targets_01_02_trait::wc];
	uint16_t b2[32];//icd1553::tws_status_and_targets_03_04_05_trait::wc];
	uint16_t b3[32];//icd1553::tws_status_and_targets_06_07_08_trait::wc];
	uint16_t b4[32];//icd1553::spt_target_message_trait::wc];
	uint16_t b5[32];//icd1553::hpt_target_message_trait::wc];

	uint16_t b6[32];//icd1553::msg_settings_tellback_trait::wc];
	uint16_t b7[32];//icd1553::msg_rdr_status_tellback_trait::wc];
	uint16_t b8[32];//icd1553::bit_report_message_trait::wc];

	uint16_t b9[32];//icd1553::msg_b09_trait::wc];
	uint16_t b10[32];//icd1553::msg_b10_trait::wc];

	uint16_t b11[32];//icd1553::msg_b10_trait::wc];
	uint16_t b12[32];//icd1553::msg_b10_trait::wc];
	uint16_t b13[32];//icd1553::msg_b10_trait::wc];
	uint16_t b14[32];//icd1553::msg_b10_trait::wc];
	uint16_t b15[32];//icd1553::msg_b10_trait::wc];
	uint16_t b16[32];//icd1553::msg_b10_trait::wc];
	uint16_t b17[32];//icd1553::msg_b10_trait::wc];
	uint16_t b18[32];//icd1553::msg_b10_trait::wc];

    //AvionicsBusDriver::message_descriptor_t msglist[32];
};

#endif

#define ICD1553_GEOPOS_SC_LSB	(4.65661E-10)
#define ICD1553_GEOPOS_DEG_LSB	(ICD1553_GEOPOS_SC_LSB*180)

#define ICD1553_SEMICIRCLE_LSB	(3.05176E-05f)
#define ICD1553_SEMICIRCLE_DEG_LSB	(180*ICD1553_SEMICIRCLE_LSB)

#define GC_K_METERS_TO_FEETS (3.280839895f)
#define GC_K_FEETS_TO_METERS (1.0f/GC_K_METERS_TO_FEETS)

#define ICD1553_BARO_ALT_FEET_LSB	(4.0)
#define ICD1553_BARO_ALT_METERS_LSB	(ICD1553_BARO_ALT_FEET_LSB*GC_K_FEETS_TO_METERS)

#define ICD1553_VELOCITY_FEET_LSB (3.81470E-06)
#define ICD1553_VELOCITY_METERS_LSB	(ICD1553_VELOCITY_FEET_LSB*GC_K_FEETS_TO_METERS)



#endif /* DATA_1553_H_ */
