Home
last modified time | relevance | path

Searched refs:m_pwm (Results 1 – 5 of 5) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/api/mraa/
Dpwm.hpp56 m_pwm = mraa_pwm_init(pin); in Pwm()
58 m_pwm = mraa_pwm_init_raw(chipid, pin); in Pwm()
61 if (m_pwm == NULL) { in Pwm()
66 mraa_pwm_owner(m_pwm, 0); in Pwm()
74 mraa_pwm_close(m_pwm); in ~Pwm()
88 return (Result) mraa_pwm_write(m_pwm, percentage); in write()
101 return mraa_pwm_read(m_pwm); in read()
112 return (Result) mraa_pwm_period(m_pwm, period); in period()
123 return (Result) mraa_pwm_period_ms(m_pwm, ms); in period_ms()
134 return (Result) mraa_pwm_period_us(m_pwm, us); in period_us()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/cjq4435/
Dcjq4435.cxx36 if ( !(m_pwm = mraa_pwm_init(pin)) ) in CJQ4435()
49 mraa_pwm_enable(m_pwm, 0); in ~CJQ4435()
51 mraa_pwm_close(m_pwm); in ~CJQ4435()
56 if (mraa_pwm_period_us(m_pwm, us) != MRAA_SUCCESS) in setPeriodUS()
63 if (mraa_pwm_period_ms(m_pwm, ms) != MRAA_SUCCESS) in setPeriodMS()
70 if (mraa_pwm_period(m_pwm, seconds) != MRAA_SUCCESS) in setPeriodSeconds()
78 mraa_pwm_enable(m_pwm, ((enable) ? 1 : 0)); in enable()
89 mraa_pwm_write(m_pwm, dutyCycle); in setDutyCycle()
Dcjq4435.h121 mraa_pwm_context m_pwm; variable
/hardware/bsp/intel/peripheral/libupm/src/l298/
Dl298.cxx43 if ( !(m_pwm = mraa_pwm_init(pwmA)) ) in L298()
54 mraa_pwm_close(m_pwm); in L298()
63 mraa_pwm_close(m_pwm); in L298()
192 mraa_pwm_close(m_pwm); in ~L298()
202 if (mraa_pwm_period_ms(m_pwm, ms) != MRAA_SUCCESS) in setPeriodMS()
212 mraa_pwm_enable(m_pwm, ((enable) ? 1 : 0)); in enable()
235 mraa_pwm_write(m_pwm, percent); in setSpeed()
Dl298.h167 mraa_pwm_context m_pwm; variable