[docs]classHslCls:"""Hsl commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("hsl",core,parent)
[docs]defset(self,hue:float,sat:float,lum:float,item=repcap.Item.Default)->None:"""SCPI: DISPlay:CMAP<it>:HSL \n Snippet: driver.display.cmap.hsl.set(hue = 1.0, sat = 1.0, lum = 1.0, item = repcap.Item.Default) \n This command selects the color for various screen elements in the display. \n :param hue: tint Range: 0 to 1 :param sat: saturation Range: 0 to 1 :param lum: brightness Range: 0 to 1 :param item: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Cmap') """param=ArgSingleList().compose_cmd_string(ArgSingle('hue',hue,DataType.Float),ArgSingle('sat',sat,DataType.Float),ArgSingle('lum',lum,DataType.Float))item_cmd_val=self._cmd_group.get_repcap_cmd_value(item,repcap.Item)self._core.io.write(f'DISPlay:CMAP{item_cmd_val}:HSL {param}'.rstrip())
# noinspection PyTypeChecker
[docs]classHslStruct(StructBase):"""Response structure. Fields: \n - Hue: float: tint Range: 0 to 1 - Sat: float: saturation Range: 0 to 1 - Lum: float: brightness Range: 0 to 1"""__meta_args_list=[ArgStruct.scalar_float('Hue'),ArgStruct.scalar_float('Sat'),ArgStruct.scalar_float('Lum')]def__init__(self):StructBase.__init__(self,self)self.Hue:float=Noneself.Sat:float=Noneself.Lum:float=None
[docs]defget(self,item=repcap.Item.Default)->HslStruct:"""SCPI: DISPlay:CMAP<it>:HSL \n Snippet: value: HslStruct = driver.display.cmap.hsl.get(item = repcap.Item.Default) \n This command selects the color for various screen elements in the display. \n :param item: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Cmap') :return: structure: for return value, see the help for HslStruct structure arguments."""item_cmd_val=self._cmd_group.get_repcap_cmd_value(item,repcap.Item)returnself._core.io.query_struct(f'DISPlay:CMAP{item_cmd_val}:HSL?',self.__class__.HslStruct())