Home > utils > checkPort.m

checkPort

PURPOSE ^

checkPort helper function to check if a port is a valid transmission port

SYNOPSIS ^

function portnum = checkPort(tx,ports)

DESCRIPTION ^

checkPort    helper function to check if a port is a valid transmission port
   portnum = checkPort(tx,ports)
   inputs:
       tx: [int] port number of the Transmitter
       ports: mapping dictionary,
           possible keys: ['Tx1','Tx2','Rx1A','Rx1B','Rx2A','Rx2B']
           possible values: [1, 2, 3, 4, 5, 6]
   output:
       portnum: [int] returns 1 if port is 'Tx1' and 2 if port is 'Tx2'

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 02-Jan-2019 14:21:51 by m2html © 2005