if freq in repeater_frequency set
// high power repeater capable channels
// allow none/off/+ duplex
if duplex == '-' then log error and set to off
if duplex == 'split' then log error and set to off
if duplex == '+' then set offset to 50000
allow high and low power
allow wideband and narrowband TX
else if freq in low_power_simplex_frequency set
// low power simplex channels
// allow none/off duplex
if duplex == '-' then log error and set to off
if duplex == '+' then log error and set to offif duplex == 'split' then log error and set to off
allow only low power
allow only narrowband TX
else if freq in high_power_simplex_frequency set
// high power simplex channels
// allow none/off duplexif duplex == '-' then log error and set to offif duplex == '+' then log error and set to offif duplex == 'split' then log error and set to offallow high and low power
allow wideband and narrowband TX
else
duplex = off
offset = 0
end if