Share via


PDDModeSet (Compact 7)

3/12/2014

This function changes the platform-dependent driver (PDD) mode and/or sampling interval.

Syntax

DWORD PDDModeSet(
    DWORD dwContext,
    ACC_HW_MODE hwMode,
    DWORD dwIntervalMs
);

Parameters

  • hwMode
    [in] ACC_HW_MODE enumeration that indicates the current hardware mode of the device.
  • dwIntervalMs
    [in] Rate, in milliseconds, at which accelerometer samples are to be streamed to the model device driver (MDD).

Return Value

Returns ERROR_SUCCESS if function succeeds; otherwise, returns a non-zero value.

Requirements

Library

accmdd.lib

See Also

Reference

Accelerometer PDD Functions