Syntax
typedef struct {
  VMUINT32 period;
  VMUINT32 sap_id;
  VM_DCL_OWNER_ID owner_id;
  VMUINT8 channel;
  VMUINT8 evaluate_count;
  VMBOOL send_message_primitive;
} vm_dcl_adc_control_create_object_t;
ContentsIndex
PreviousUpNext
vm_dcl_adc_control_create_object_t
Syntax
typedef struct {
  VMUINT32 period;
  VMUINT32 sap_id;
  VM_DCL_OWNER_ID owner_id;
  VMUINT8 channel;
  VMUINT8 evaluate_count;
  VMBOOL send_message_primitive;
} vm_dcl_adc_control_create_object_t;
Description

The structure of ADC control command VM_DCL_ADC_COMMAND_CREATE_OBJECT.

File

vmdcl_adc.h

Members
Members 
Description 
VMUINT32 period; 
Measurement period, the uint is in tick. 
VMUINT32 sap_id; 
Reserved. 
VM_DCL_OWNER_ID owner_id; 
Use vm_dcl_get_owner_id to retrieve owner id. 
VMUINT8 channel; 
The physical ADC channel to be measured. Channels are defined in VM_DCL_ADC_CHANNEL. Use the macro PIN2CHANNEL to convert pin names, e.g. A0 and A1, to the corresponding physical channel id. 
VMUINT8 evaluate_count; 
Number of measurement to take. 
VMBOOL send_message_primitive; 
Set to VM_TRUE to receive VM_DCL_ADC_GET_RESULT. Set to VM_FALSE to ignore the 
Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.