Main Page | Modules | Data Structures | File List | Data Fields | Globals

qompwm.h File Reference

QOMPWM TPU functions. More...

#include <68332/types.h>
#include <68332/tpu.h>

Go to the source code of this file.

Functions

void qompwm (TPUChannel *handle, uint16 hi_time, uint16 lo_time)


Detailed Description

This file contains the global function prototypes and data structures for the Queued Output Module Pulse-Width Modulation (QOMPWM) functionality of the libtpu library.

To use the functions defined in this file, include <68332/qompwm.h> and link libtpu.a.


Function Documentation

void qompwm TPUChannel handle,
uint16  hi_time,
uint16  lo_time
 

Outputs a PWM waveform on a TPU channel. The first call to this function initializes the pin for PWM using QOM.

Parameters:
handle The pointer to a TPUChannel returned from tpu_request_channel().
hi_time The high time of the PWM signal.
lo_time The low time of the PWM signal.
hi_time and lo_time are expressed in units of TCR1 ticks.


Generated on Wed Sep 6 03:02:22 2006 for MotoRobots by doxygen 1.3.6