function [tfplist, hamBandName] = ansi_tfplanHAM(tfplist);
%% ===========================================================================
%ansi_tfplanHAM(tfplist) - Sets up the tfplan for ANSI HAM band
%
% Parameter:    tfplist	        Structure describing the time and freq plan
% Returns:      tfplist		Structure describing the time and freq plan
%
% Example(s):
%   ex.tfplist = ansi_tfplanHAM(ex.tfplist);    Add to existing tfplist
%   tfplan=getList(ex.tfplist,'ANSI-HAMBAND');  Get this HAM band
%
%   ex.tfplist = ansi_tfplanHAM([]);            Create a new tfplist
%   tfplan=getList(ex.tfplist,'ANSI-HAMBAND');  Get this HAM band
%
% Reference:
%   T1E1.4 VDSL Editor, "Very-high-speed Digital Subscriber Lines - 
%   System Requirements", VDSL SR:08-043R6, November 30, 1998
%% ===========================================================================
%% ===========================================================================
% Copyright (C) 1999 by Telia Research AB, Lulea, Sweden; All rights reserved. 
% Project       : FSAN duplex model
% Author(s)     : Tomas Nordstrom (Tomas.Nordstrom@FTW.at)
%               : Daniel Bengtsson (Daniel.J.Bengtsson@Telia.se)
%
% CVS:       $Id: ansi_tfplanHAM.m,v 1.8 2000/05/26 13:17:46 uvan Exp $
%% ===========================================================================
% Change History
%      1999-10-25 (ToNo) Created
%      1999-11-04 (ToNo) Made it into a function
%      2000-04-04 (DaB)  Removed ex dependency
%      2000-04-05 (UvAn) Added frequency axis for the call to calcPSD
%      2000-04-05 (UvAn) Removed ex struct and added tfplan.name as output
%      2000-04-11 (DaB)  added sync
%      2000-05-26 (UvAn) Added possibillities to fix the bitrate 
%% ===========================================================================

%% ===========================================================================
% Template, order important!

% Default values
def_tfplan.name                  = 'N/A';
def_tfplan.PSD.downstream        = 'N/A';
def_tfplan.PSD.upstream          = 'N/A';
def_tfplan.PSD.active.upstream   = [1 30e6];
def_tfplan.PSD.active.downstream = [1 30e6];
def_tfplan.PSD.PBO.method        = 'None';	% Power back-off method (-=not applicable)
def_tfplan.PSD.PBO.param.len     = 1500;		% PBO parameter {length(m)}
def_tfplan.PSD.PBO.param.freq    = 2e6;	
def_tfplan.PSD.PBO.param.maxlen  = 1500;
def_tfplan.PSD.HAM.active        = 0;
def_tfplan.timeDivision.up       = 1; % Time used in up resp. down lin
def_tfplan.timeDivision.down     = 1;
def_tfplan.timeDivision.sync     = 1;
def_tfplan.fixBitrate.name       = 'None';  % Fixed bitrate method
def_tfplan.fixBitrate.active     = 0;       % 0=inactive, 1=active
def_tfplan.fixBitrate.param      = 'N/A';   
def_tfplan.lcname                = 'N/A';

%% ===========================================================================
% TFPlan  definitions starting
% -------------------------------

% ANSI HAM bands
tmp_tfplan=def_tfplan;
tmp_tfplan.name='ANSI-HAMBAND';
tmp_tfplan.PSD.downstream='calcPSD([ 3e3 0 1.81e6 0 1.81e6 -80 2e6 -80 2e6 0 3.5e6 0 3.5e6 -80 4.0e6 -80 4.0e6 0 7e6 0 7e6 -80 7.3e6 -80 7.3e6 0 10.1e6 0 10.1e6 -80 10.15e6 -80 10.15e6 0 14e6 0 14e6 -80 14.35e6 -80 14.35e6 0 18.068e6 0 18.068e6 -80 18.168e6 -80 18.168e6 0 21e6 0 21e6 -80 21.45e6 -80 21.45e6 0 24.89e6 0 24.89e6 -80 24.99e6 -80 24.99e6 0 28e6 0 28e6 -80 29.7e6 -80 29.7e6 0],''Linear'',ex.param.frequency.f)';  
tmp_tfplan.PSD.upstream=tmp_tfplan.PSD.downstream;
tfplist=insertList(tfplist,tmp_tfplan);

hamBandName = tmp_tfplan.name;