src/ssx/occhw/occhw_ocb.c
/// Procedure to disable a linear window on an indirect channel
///
/// This procedure will disable the linear window while maintaining
/// the linear_window_bar and linear_window_mask settings
///
/// \param channel The indirect channel to disable, in the range 0..2.
///
/// \retval 0 Success
///
/// \retval OCB_INVALID_ARGUMENT_LW_DISABLE One or more of the parameter
/// restrictions were violated.
///
Procedure to disable a linear window on an indirect channel
This procedure will disable the linear window while maintaining
the linear_window_bar and linear_window_mask settings

\param channel The indirect channel to disable, in the range 0..2.

\retval 0 Success

\retval OCB_INVALID_ARGUMENT_LW_DISABLE One or more of the parameter
restrictions were violated.
Procedure to disable a linear window on an indirect channel This procedure will disable the linear window while maintaining the linear_window_bar and linear_window_mask settings \ param channel The indirect channel to disable in the range 0 .. 2 . \ retval 0 Success \ retval OCB_INVALID_ARGUMENT_LW_DISABLE One or more of the parameter restrictions were violated .
int
ocb_linear_window_disable(int channel)
{
    ocb_ocblwcrn_t ocblwcrn;
    if (SSX_ERROR_CHECK_API)
    {
        SSX_ERROR_IF((channel < 0) ||
                     (channel > 3),
                     OCB_INVALID_ARGUMENT_LW_DISABLE);
    }
    ocblwcrn.value = in32(OCB_OCBLWCRN(channel));
    ocblwcrn.fields.linear_window_enable = 0;
    out32(OCB_OCBLWCRN(channel), ocblwcrn.value);
    return 0 ;
}
int ocb_linear_window_disable ( int channel ) { ocb_ocblwcrn_t ocblwcrn ; if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_IF ( ( channel < 0 ) || ( channel > 3 ) , OCB_INVALID_ARGUMENT_LW_DISABLE ) ; } ocblwcrn . value = in32 ( OCB_OCBLWCRN ( channel ) ) ; ocblwcrn . fields . linear_window_enable = 0 ; out32 ( OCB_OCBLWCRN ( channel ) , ocblwcrn . value ) ; return 0 ; }
Procedure to disable a linear window on an indirect channel
This procedure will disable the linear window while maintaining
the linear_window_bar and linear_window_mask settings
Procedure to disable a linear window on an indirect channel This procedure will disable the linear window while maintaining the linear_window_bar and linear_window_mask settings
// Disable LW mode