8#include "gtest/gtest.h"
53 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputGet(l_TrigBounds));
58 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputSet(l_Trig));
61 ASSERT_EQ(
true, pTHM1176->Initiate());
78 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputGet(l_TrigBounds));
83 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputSet(l_Trig));
86 ASSERT_EQ(
true, pTHM1176->Initiate(
true));
103 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputGet(l_TrigBounds));
107 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputSet(l_Trig));
110 ASSERT_EQ(
true, pTHM1176->Initiate());
118 ASSERT_EQ(
true, pTHM1176->Abort());
128 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputSet(l_Trig));
131 ASSERT_EQ(
true, pTHM1176->Initiate(
true));
138 ASSERT_EQ(
true, pTHM1176->Abort());
150 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputGet(l_TrigBounds));
154 ASSERT_EQ(
true, pTHM1176->ParmTriggerInputSet(l_Trig));
157 ASSERT_EQ(
true, pTHM1176->Initiate());
165 ASSERT_EQ(
true, pTHM1176->SendBusTrigger());
TEST_F(CTHM1176InitiateTest, InitiateSingle)
Utility functions used to test THM1176 API.
bool ConnectToTHM1176(THM1176_TEST_RESOURCE_MANAGER_CLASS *&rpResourceManager, CTHM1176Instrument< THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS > *&rpTHM1176)
Connect to a THM1176.
Test THM1176 API: Initiate, Abort, Bus Trigger.
static void SetUpTestCase()
static CTHM1176Instrument< THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS > * pTHM1176
static void TearDownTestCase()
static THM1176_TEST_RESOURCE_MANAGER_CLASS * pResourceManager
THM1176 instrument class.
@ kStatusCondition
Condition register.
@ kStatusEvent
Event register.
@ kInputTrigSrcTimer
Timed trigger: start measurement at regular intervals.
@ kInputTrigSrcBus
Bus trigger: start measurement upon USB trigger message.
@ kStatusOperationStatusRegister
Operation Status Register.
Complete identification of a SCPI status register.
U16 WaitingForTRIGger
Waiting for trigger.
U16 MEASuring
Measuring magnetic field strength.
Union to access the Operation Status Register as integer or bit fields.
struct MTL::Instrument::THM1176Types::uOPERation::sOPERation OPERation
Access the Operation Status Register as bit fields.
U16 RawOPER
Access the Operation Status Register as unsigned integer.