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