Maxim-integrated 73M1866B/73M1966B Reference Driver Manual de usuario Pagina 61

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 60
UG_1x66B_015 73M1866B/73M1966B Reference Driver User Guide
Rev. 2.7 61
6.6.2 M1966_MEASURE_STOP
Description
Stops an on-going measurement (current or voltage). The param parameter points to a structure that
contains the requested stop measuring entity.
#define M1966_MEASURE_STOP _IOWR(0xA4, 0xE6, unsigned int)
Prototype
int ioctl (
int chan_fd,
int M1966_MEASURE_STOP,
unsigned long param );
Parameters
Data Type Name Description
int
chan_fd
Channel descriptor.
int
M1966_MEASURE_ST
OP
I/O control identifier for this operation.
unsigned long
param
Pointer to
M1966_MEASURE_START_STOP_t
.
Return Values
Data Type Description
unsigned long
0 – Successful.
-1 Failed to stop measurement.
Example
The following example code illustrates the stopping of an on-going voltage measurement process.
M1966_MEASURE_START_t voltage;
int ret;
voltage.entity = M1966_MEASURE_ENTITY_VOLTAGE; /* stop voltage monitor */
ret = ioctl (fd, M1966_MEASURE_STOP, &voltage);
if (ret < 0)
printf (“Failed to stop line voltage monitoring”);
else
printf (“Successful”);
Vista de pagina 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 97 98

Comentarios a estos manuales

Sin comentarios