Пример #1
0
NS_IMETHODIMP
nsCameraControl::SetWhiteBalanceMode(const nsAString & aWhiteBalanceMode)
{
  return setHelper(this, CAMERA_PARAM_WHITEBALANCE, aWhiteBalanceMode);
}
Пример #2
0
/**
 * 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);
}
Пример #3
0
/**
 * set eQEP Control Register
**/
void eQEP::setControl(uint16_t value) {
  setHelper(EQEP_QEPCTL, value);
}
Пример #4
0
/**
 * Set Position Compare Control register value.
**/
void eQEP::setPositionCompareControl(uint16_t value) {
  setHelper(EQEP_QPOSCTL, value);
}
Пример #5
0
/**
 * 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);
}
Пример #6
0
/** 
 * 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);
}
Пример #7
0
NS_IMETHODIMP
nsCameraControl::SetFocusAreas(JSContext *cx, const JS::Value & aFocusAreas)
{
  return setHelper(this, CAMERA_PARAM_FOCUSAREAS, aFocusAreas, cx);
}
Пример #8
0
/**
 * 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);
}
Пример #9
0
NS_IMETHODIMP
nsCameraControl::SetZoom(double aZoom)
{
  return setHelper(this, CAMERA_PARAM_ZOOM, aZoom);
}
Пример #10
0
NS_IMETHODIMP
nsCameraControl::SetMeteringAreas(JSContext *cx, const JS::Value & aMeteringAreas)
{
  return setHelper(this, CAMERA_PARAM_METERINGAREAS, aMeteringAreas, cx);
}
Пример #11
0
NS_IMETHODIMP
nsCameraControl::SetFocusMode(const nsAString & aFocusMode)
{
  return setHelper(this, CAMERA_PARAM_FOCUSMODE, aFocusMode);
}
Пример #12
0
NS_IMETHODIMP
nsCameraControl::SetFlashMode(const nsAString & aFlashMode)
{
  return setHelper(this, CAMERA_PARAM_FLASHMODE, aFlashMode);
}
Пример #13
0
NS_IMETHODIMP
nsCameraControl::SetSceneMode(const nsAString & aSceneMode)
{
  return setHelper(this, CAMERA_PARAM_SCENEMODE, aSceneMode);
}
Пример #14
0
void eQEP::setPosInit(uint32_t pos_init)
{
  setHelper(EQEP_QPOSINIT,pos_init);
}
Пример #15
0
/* void setExposureCompensation ([optional] in double compensation); */
NS_IMETHODIMP
nsCameraControl::SetExposureCompensation(double compensation)
{
  return setHelper(this, CAMERA_PARAM_EXPOSURECOMPENSATION, compensation);
}
Пример #16
0
void eQEP::setMaxPos(uint32_t max_pos)
{
  setHelper(EQEP_QPOSMAX,max_pos);
}
Пример #17
0
/**
 * Clear triggered interrupts
 *
 * \param Set bits indicating the interrupts to clear
**/
void eQEP::setInterruptClear(uint16_t value) {
  setHelper(EQEP_QCLR, value);
}
Пример #18
0
/**
 * 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);
}
Пример #19
0
/**
 * Force interrupts to be triggered.
**/
void eQEP::setInterruptForce(uint16_t value) {
  setHelper(EQEP_QFRC, value);
}
Пример #20
0
/**
 * 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);
}
Пример #21
0
/**
 * Set the status of the eQEP functions. Only some bits may be set.
**/
void eQEP::setStatus(uint16_t value) {
  setHelper(EQEP_QEPSTS, value);
}
Пример #22
0
/**
 * Set the current eQEP Decoder control register setting
**/
void eQEP::setDecoderControl(uint16_t value) {
  setHelper(EQEP_QDECCTL, value);
}
Пример #23
0
/**
 * 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);
}
Пример #24
0
/**
 * 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);
}
Пример #25
0
/**
 * 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);
}
Пример #26
0
/**
 * Turn on interrupts by passing the correct bits
**/
void eQEP::setInterruptEnable(uint16_t value) {
  setHelper(EQEP_QEINT, value);
}
Пример #27
0
NS_IMETHODIMP
nsCameraControl::SetEffect(const nsAString & aEffect)
{
  return setHelper(this, CAMERA_PARAM_EFFECT, aEffect);
}