import ctypes
from .enums import InterceptModeSelection, NormalDashedSelection
import Grifo_E_1553lib.data_types.enum_map as em

em.ENUM_MAP.update({
    
    "intercept_mode_selector" : InterceptModeSelection,
    "normal_dashed_selector" : NormalDashedSelection
    
})

class InterceprFlightDirectorXSelector(ctypes.LittleEndianStructure):
    _pack_ = 1
    _fields_ = [
        
        ("spare",ctypes.c_uint16,5),
        ("normal_dashed_selector",ctypes.c_uint16,1),
        ("intercept_mode_selector", ctypes.c_uint16,1),
        ("x_display_coord_ifd",ctypes.c_uint16,9)
               
    ]

class InterceprFlightDirectorY(ctypes.LittleEndianStructure):
    _pack_ = 1
    _fields_ = [
        
        ("spare",ctypes.c_uint16,7),
        ("y_display_coord_ifd",ctypes.c_uint16,9)
               
    ]
    
class Zone(ctypes.LittleEndianStructure):
    _pack_ = 1
    _fields_ = [
        
        ("spare", ctypes.c_uint16, 7),
        ("y_displ_coord", ctypes.c_uint16,9)
        
    ]