parameters: (self, af_type=None, steps=None)
docstring: Envia el comando CMD_PRINTER_SET_AUTOFEED al ARM.
  
          Argumentos:
              af_type -- el tipo de autofeed que queremos establecer.
              steps -- los pasos que va a mover el autofeed.
docstring_summary: Envia el comando CMD_PRINTER_SET_AUTOFEED al ARM.
docstring_tokens: Envia el comando CMD_PRINTER_SET_AUTOFEED al ARM .
function: def set_autofeed(self, af_type=None, steps=None):
          """Envia el comando CMD_PRINTER_SET_AUTOFEED al ARM.
  
          Argumentos:
              af_type -- el tipo de autofeed que queremos establecer.
              steps -- los pasos que va a mover el autofeed.
          """
          if af_type not in (AUTOFEED_1, AUTOFEED_2, AUTOFEED_OFF):
              af_type = AUTOFEED_DEFAULT
  
          if steps not in (AUTOFEED_1_MOVE, AUTOFEED_2_MOVE):
              if af_type == AUTOFEED_1:
                  steps = AUTOFEED_1_MOVE
              else:
                  steps = AUTOFEED_2_MOVE
  
          self._send_command(CMD_PRINTER_SET_AUTOFEED,
                             struct_autofeed.build(Container(af_type=af_type,
                                                             steps=steps)))
function_tokens: def set_autofeed ( self , af_type = None , steps = None ) : if af_type not in ( AUTOFEED_1 , AUTOFEED_2 , AUTOFEED_OFF ) : af_type = AUTOFEED_DEFAULT if steps not in ( AUTOFEED_1_MOVE , AUTOFEED_2_MOVE ) : if af_type == AUTOFEED_1 : steps = AUTOFEED_1_MOVE else : steps = AUTOFEED_2_MOVE self . _send_command ( CMD_PRINTER_SET_AUTOFEED , struct_autofeed . build ( Container ( af_type = af_type , steps = steps ) ) )