$PortObj->can_interval_timeout # 0 currently $PortObj->can_16bitmode # 0 Win32-specific # most are just constants in the POSIX case $PortObj->parity_enable(F) # faults during input $PortObj->error_msg(ON) # translate error bitmasks and carp $PortObj->user_msg(ON) # built-in instead of warn/die above # parameters exist, but message processing not yet fully implemented # true/false parameters (return scalar context only) # the calls exist to support compatibility # these are essentially dummies in POSIX implementation $PortObj->stopbits(1) # POSIX does not support 1.5 stopbits # stopbits, and handshake (which only accept specific input = $PortObj->handshake # permitted choices (list) # currently supported are those for baudrate, parity, databits, # The only "list context" method calls from Win32::SerialPort $flowcontrol = $PortObj->handshake # current value (scalar) $PortObj->handshake("xoff") # set parameter OS_Error unless ($API_Call_OK) # prints error Configuration Parameter Methods # most methods can be called two ways: # test suite use = Device::SerialPort->set_test_mode_active(1) $PortObj->cfg_param_3('none') # one may end up as a log file path $PortObj->cfg_param_2('none') # 3 spares should be enough for now $PortObj->cfg_param_1('none') # null string '' hard to save/restore $PortObj->datatype('raw') # in case an application needs_to_know $PortObj->hostaddr(0) # false unless specified $PortObj->hostname('localhost') # for socket-based implementations $PortObj->devicetype('none') # CM11, CM17, 'weeder', 'modem' variables" saved in $Configuration_File, not used internally || warn "Can't reread $Configuration_File_Name: $!\n" $PortObj->restart($Configuration_File_Name) # or switch to a different configuration on the same port # rereads file to either return open port to a known state # currently optional after new, POSIX version expected to succeed || warn "Can't save $Configuration_File_Name: $!\n" || die "Can't tie using $Configuration_File_Name: $!\n" Configuration Utility Methods $PortObj->alias("MODEM1") $PortObj = tie (*FH, 'Device::SerialPort', $Configuration_File_Name) || die "Can't start $Configuration_File_Name: $!\n" $PortObj = start Device::SerialPort ($Configuration_File_Name) $PortObj = new Device::SerialPort ($PortName, $quiet, $lockfile) SYNOPSIS use Device::SerialPort qw( :PARAM :STAT 0.07 ) Constructors # $lockfile is optional
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |