<s> """<STR_LIT>""" <EOL> from lantz import Action , Feat , Driver <EOL> class IEEE4882Driver ( Driver ) : <EOL> """<STR_LIT>""" <EOL> @ Feat ( read_once = True ) <EOL> def idn ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . parse_query ( '<STR_LIT>' , <EOL> format = '<STR_LIT>' ) <EOL> @ Feat ( read_once = True ) <EOL> def fitted_options ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . query ( '<STR_LIT>' ) . split ( '<STR_LIT:U+002C>' ) <EOL> @ Action ( ) <EOL> def reset ( self ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' ) <EOL> @ Action ( ) <EOL> def self_test ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . query ( '<STR_LIT>' ) == '<STR_LIT:0>' <EOL> @ Action ( ) <EOL> def wait ( self ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' ) <EOL> @ Action ( ) <EOL> def trigger ( self ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' ) <EOL> @ Feat ( ) <EOL> def status_byte ( self ) : <EOL> """<STR_LIT>""" <EOL> return int ( self . query ( '<STR_LIT>' ) ) <EOL> @ Feat ( ) <EOL> def service_request_enabled ( self ) : <EOL> """<STR_LIT>""" <EOL> return int ( self . query ( '<STR_LIT>' ) ) <EOL> @ service_request_enabled . setter <EOL> def service_request_enabled ( self , value ) : <EOL> self . query ( '<STR_LIT>' . format ( value ) ) <EOL> event_status_reg = Feat ( ) <EOL> @ event_status_reg . setter <EOL> def event_status_reg ( self ) : <EOL> """<STR_LIT>""" <EOL> return int ( self . query ( '<STR_LIT>' ) ) <EOL> @ Feat ( ) <EOL> def event_status_enabled ( self ) : <EOL> """<STR_LIT>""" <EOL> return int ( self . query ( '<STR_LIT>' ) ) <EOL> @ event_status_enabled . setter <EOL> def event_status_enabled ( self , value ) : <EOL> self . query ( '<STR_LIT>' , value ) <EOL> @ Action ( ) <EOL> def clear_status ( self ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' ) <EOL> @ Action ( ) <EOL> def wait_operation_complete_bit ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . query ( '<STR_LIT>' ) <EOL> @ Action ( ) <EOL> def set_operation_complete_bit ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . query ( '<STR_LIT>' ) <EOL> @ Feat ( values = { True : <NUM_LIT:0> , False : <NUM_LIT:1> } ) <EOL> def poweron_status_clear_enabled ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . query ( '<STR_LIT>' ) <EOL> @ poweron_status_clear_enabled . setter <EOL> def poweron_status_clear_enabled ( self , value ) : <EOL> self . query ( '<STR_LIT>' . format ( value ) ) <EOL> @ Action ( ) <EOL> def recall_state ( self , location ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' . format ( location ) ) <EOL> @ Action ( ) <EOL> def save_state ( self , location ) : <EOL> """<STR_LIT>""" <EOL> self . send ( '<STR_LIT>' . format ( location ) ) </s>
