Private
Public Access
2
0

pwm: Completed functions:

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-04-14 14:40:40 +01:00
parent cb92c892cf
commit 5c2235dc0c
2 changed files with 90 additions and 20 deletions

View File

@@ -66,6 +66,8 @@ private:
void write_period(int period);
void write_duty(int duty);
int setup_duty_fp();
int get_period();
int get_duty();
public:
@@ -98,28 +100,28 @@ public:
*/
void period(float seconds);
/** Set period. Microseconds.
* @param ms microseconds for period.
/** Set period. milli-oseconds.
* @param ms milli-seconds for period.
*/
void period_ms(int ms);
/** Set period. Nanoseconds
* @param ns nanoseconds as period.
/** Set period. microseconds
* @param ns microseconds as period.
*/
void perod_us(int us);
void period_us(int us);
/** Set pulsewidth, As represnted by seconds in a (float).
* @param seconds The duration of a pulse
*/
void pulsewidth(float seconds);
/** Set pulsewidth. Microseconds
* @param ms microseconds for pulsewidth.
/** Set pulsewidth. Milliseconds
* @param ms milliseconds for pulsewidth.
*/
void pulsewidth_ms(int ms);
/** Set pulsewidth, nanoseconds.
* @param us nanoseconds for pulsewidth.
/** Set pulsewidth, microseconds.
* @param us microseconds for pulsewidth.
*/
void pulsewidth_us(int us);