// Author & Date: Kirk Korver 29 Oct 2003 // Purpose: Tell me if this channel is enabled // Inputs: // nChannel - the channel of interest (1 based) // Outputs: // TRUE if the channel is enabled; FALSE, otherwise bool IsDigitalOutEnabled(UINT32 nChannel, UINT32 nInstance) { UINT32 nOptions; cbGetDoutOptions(nChannel, &nOptions, NULL, NULL, nInstance); return (nOptions & cbDOUT_1BIT) ? true : false; }
// Author & Date: Kirk Korver 29 Oct 2003 // Purpose: Tell me if this channel is enabled // Inputs: // nChannel - the channel of interest (1 based) // Outputs: // TRUE if the channel is enabled; FALSE, otherwise bool IsDigitalOutEnabled(uint32_t nChannel, uint32_t nInstance) { uint32_t nOptions; cbGetDoutOptions(nChannel, &nOptions, NULL, NULL, NULL, NULL, NULL, nInstance); return (nOptions & cbDOUT_1BIT) ? true : false; }