M1966_measure_action, M1966_measure_start_stop_t, O m1966_measure_start_stop_t – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual
Page 89
UG_1x66B_015
73M1866B/73M1966B Reference Driver User Guide
Rev. 2.7
89
7.14.2 M1966_MEASURE_ACTION
Description
This is the enumerated list of possible request actions that can be performed on Interval and Event Table
(IET). See M1966_IET_t for a description of the IET table.
Prototype
typedef enum
{
M1966_MEASURE_ACTION_GET = 0,
M1966_MEASURE_ACTION_SET = 1,
M1966_MEASURE_ACTION_SET = 2
}
M1966_MEASURE_ACTION;
Parameters
Name
Value
Description
M1966_MEASURE_ACTION_GET
0
Read the IET table entry.
M1966_MEASURE_ACTION_SET
1
Update the IET table entry.
M1966_MEASURE_ACTION_CLEAR
2
Disable the IET table entry.
7.14.3 M1966_MEASURE_START_STOP_t
Description
This structure is used by the M1966_MEASURE_START and M1966_MEASURE_STOP IOCTLs to start
and stop the current or voltage measurement.
Prototype
typedef struct
{
M1966_MEASURE_ENTITY entity;
unsigned int sample_time;
unsigned int average_sample_count;
}
M1966_MEASURE_START_t;
Parameters
Data Type
Name
Description
M1966_MEASURE_ENTITY
entity
Measuring entity – current or voltage.
unsigned int
sample_time
Interval between two samplings in
milliseconds (not applicable for the
M1966_MEASURE_STOP
unsigned int
average_sample_count Sample count for average calculation (not
applicable for the M1966_MEASURE_STOP
IOCTL.