NS_IMETHODIMP nsCameraControl::SetWhiteBalanceMode(const nsAString & aWhiteBalanceMode) { return setHelper(this, CAMERA_PARAM_WHITEBALANCE, aWhiteBalanceMode); }
/** * eQEP capture period value can be latched into this register on two events * viz., unit timeout event, reading the eQEP position counter. * * @see setCaptureLatchMode() * @see setCaptureTimeClockPrescaler() * @see enableCaptureUnit() **/ void eQEP::setCapturePeriodLatch(uint16_t value) { setHelper(EQEP_QCPRDLAT, value); }
/** * set eQEP Control Register **/ void eQEP::setControl(uint16_t value) { setHelper(EQEP_QEPCTL, value); }
/** * Set Position Compare Control register value. **/ void eQEP::setPositionCompareControl(uint16_t value) { setHelper(EQEP_QPOSCTL, value); }
/** * This register contains the period count for unit timer to generate * periodic unit time events to latch the eQEP position information at * periodic interval and optionally to generate interrupt. **/ void eQEP::setUnitPeriod(uint32_t value) { setHelper(EQEP_QUPRD, value); }
/** * This register contains the time-out count for the eQEP peripheral watch * dog timer. When the watchdog timer value matches the watchdog period * value, a watchdog timeout interrupt is generated. **/ void eQEP::setWatchdogPeriod(uint16_t value) { setHelper(EQEP_QWDPRD, value); }
NS_IMETHODIMP nsCameraControl::SetFocusAreas(JSContext *cx, const JS::Value & aFocusAreas) { return setHelper(this, CAMERA_PARAM_FOCUSAREAS, aFocusAreas, cx); }
/** * The position-compare value in this register is compared with the position * counter (QPOSCNT) to generate sync output and/or interrupt on compare * match. * * @see getPosition() * @see setPosition() * @see setPositionCompareControl() **/ void eQEP::setPositionCompare(uint32_t value) { setHelper(EQEP_QPOSCMP,value); }
NS_IMETHODIMP nsCameraControl::SetZoom(double aZoom) { return setHelper(this, CAMERA_PARAM_ZOOM, aZoom); }
NS_IMETHODIMP nsCameraControl::SetMeteringAreas(JSContext *cx, const JS::Value & aMeteringAreas) { return setHelper(this, CAMERA_PARAM_METERINGAREAS, aMeteringAreas, cx); }
NS_IMETHODIMP nsCameraControl::SetFocusMode(const nsAString & aFocusMode) { return setHelper(this, CAMERA_PARAM_FOCUSMODE, aFocusMode); }
NS_IMETHODIMP nsCameraControl::SetFlashMode(const nsAString & aFlashMode) { return setHelper(this, CAMERA_PARAM_FLASHMODE, aFlashMode); }
NS_IMETHODIMP nsCameraControl::SetSceneMode(const nsAString & aSceneMode) { return setHelper(this, CAMERA_PARAM_SCENEMODE, aSceneMode); }
void eQEP::setPosInit(uint32_t pos_init) { setHelper(EQEP_QPOSINIT,pos_init); }
/* void setExposureCompensation ([optional] in double compensation); */ NS_IMETHODIMP nsCameraControl::SetExposureCompensation(double compensation) { return setHelper(this, CAMERA_PARAM_EXPOSURECOMPENSATION, compensation); }
void eQEP::setMaxPos(uint32_t max_pos) { setHelper(EQEP_QPOSMAX,max_pos); }
/** * Clear triggered interrupts * * \param Set bits indicating the interrupts to clear **/ void eQEP::setInterruptClear(uint16_t value) { setHelper(EQEP_QCLR, value); }
/** * This register acts as time base for unit time event generation. When this * timer value matches with unit time period value, unit time event is * generated. **/ void eQEP::setUnitTimer(uint32_t value) { setHelper(EQEP_QUTMR,value); }
/** * Force interrupts to be triggered. **/ void eQEP::setInterruptForce(uint16_t value) { setHelper(EQEP_QFRC, value); }
/** * This register acts as time base for watch dog to detect motor stalls. When * this timer value matches with watch dog period value, watch dog timeout * interrupt is generated. This register is reset upon edge transition in * quadrature-clock indicating the motion. **/ void eQEP::setWatchdogTimer(uint16_t value) { setHelper(EQEP_QWDTMR, value); }
/** * Set the status of the eQEP functions. Only some bits may be set. **/ void eQEP::setStatus(uint16_t value) { setHelper(EQEP_QEPSTS, value); }
/** * Set the current eQEP Decoder control register setting **/ void eQEP::setDecoderControl(uint16_t value) { setHelper(EQEP_QDECCTL, value); }
/** * This register provides time base for edge capture unit. * * @see setCaptureLatchMode() * @see setCaptureTimeClockPrescaler() * @see enableCaptureUnit() **/ void eQEP::setCaptureTimer(uint16_t value) { setHelper(EQEP_QCTMR, value); }
/** * Set Capture Control register value. * * /warning The QCAPCTL register should not be modified dynamically (such as * switching CAPCLK prescaling mode from QCLK/4 to QCLK/8). The capture unit * must be disabled before changing the prescaler. @see disableCaptureUnit() **/ void eQEP::setCaptureControl(uint16_t value) { setHelper(EQEP_QCAPCTL, value); }
/** * This register holds the period count value between the last successive * eQEP position events * * @see setCaptureLatchMode() * @see setCaptureTimeClockPrescaler() * @see enableCaptureUnit() **/ void eQEP::setCapturePeriod(uint16_t value) { setHelper(EQEP_QCPRD, value); }
/** * Turn on interrupts by passing the correct bits **/ void eQEP::setInterruptEnable(uint16_t value) { setHelper(EQEP_QEINT, value); }
NS_IMETHODIMP nsCameraControl::SetEffect(const nsAString & aEffect) { return setHelper(this, CAMERA_PARAM_EFFECT, aEffect); }