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

qompulse.h File Reference

QOMPULSE TPU functions. More...

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

Go to the source code of this file.

Functions

void qompulse (TPUChannel *handle, bool pulseLevel, uint16 pulseLength)


Detailed Description

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

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


Function Documentation

void qompulse TPUChannel handle,
bool  pulseLevel,
uint16  pulseLength
 

Outputs a one-shot pulse on a TPU channel. The first call to this function initializes the pin for pulse output using QOM.

Parameters:
handle The pointer to a TPUChannel returned from tpu_request_channel().
pulseLevel The logic level of the pulse to output.
pulseLength The duration of the one-shot pulse output.
pulseLength is expressed in units of TCR1 ticks.


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