TUPInitGrpCfg

Initializes a group configuration structure.

Prototype

void TUPInitGrpCfg ( TupGrpCfg *cfg, U16 count)

Argument

Description

cfg

Pointer to the configuration structure to fill.

count

Number of circuits.


Return values

Return value

Description

TUP_SUCCESS

 

TUP_BOARD

board is out of range.

TUP_DRIVER

Error occurred accessing the driver.

TUP_FAILED

Task on the TX board reported a failure.

TUP_UNBOUND

Application failed to call TUPInitMgmtAPI prior to this call.


Details

The dfltGrpCfg element settings are:

typedef struct _TUPGrpCfg
{
    count             /* The count parameter
    range       0     /* Predefined groups can use 0            */
    t20.enable  TRUE  /* Time to wait to Tx second GRS (5)      */
    t20.value   5
    t21.enable  TRUE  /* Time to wait for GRA (4-15)            */
    t21.value   15
    t22.enable  TRUE  /* Time to wait to Tx another GRS (60)    */
    t22.value   60
    t23.enable  TRUE  /* Time to wait to send 2nd MGB (5)       */
    t23.value   5
    t24.enable  TRUE  /* Time to wait to Tx 2nd MGU (5)         */
    t24.value   5
    t25.enable  TRUE  /* Time to wait to alert after MGB (300)  */
    t25.value   300
    t26.enable  TRUE  /* Time to wait for MBA (4-15)            */
    t26.value   15
    t27.enable  TRUE  /* Time to wait to resend MGB (60)        */
    t27.value   60
    t28.enable  TRUE  /* Time to wait MUA (4-15)                */
    t28.value   15
    t29.enable  TRUE  /* Time to send another MGU (60)          */
    t29.value   60
    t30.enable  TRUE  /* Time to wait to send 2nd HGB (5)        */
    t30.value   5
    t31.enable  TRUE  /* Time to wait to send 2nd HGU (5)        */
    t31.value   5
    t32.enable  TRUE  /* Time to wait for HBA (4-15)            */
    t32.value   15
    t33.enable  TRUE  /* Time to wait to send another HGB (60)  */
    t33.value   60
    t34.enable  TRUE  /* Time to wait for HUA (4-15)            */
    t34.value   15
    t35.enable  TRUE  /* Time to wait to send another HGU (60)  */
    t35.value   60
    t36.enable  TRUE  /* Time to wait to send 2nd SGB (5)        */
    t36.value   5
    t37.enable  TRUE  /* Time to wait to send 2nd SGU (5)        */
    t37.value   5
    t38.enable  TRUE  /* Time to wait for SBA (4-15)            */
    t38.value   15
    t39.enable  TRUE  /* Time to wait to send another SGB (60)  */
    t39.value   60
    t40.enable  TRUE  /* Time to wait for SUA (4-15)            */
    t40.value   15
    t41.enable  TRUE  /* Time to send another SGU (60)          */
    t41.value   60
} TUPGrpCfg;