#include <68332/types.h>
Go to the source code of this file.
To use the functions defined in this file, include <68332/tpu.h> and link libtpu.a.
|
Generate a pram address to be used as a pointer. This macro returns an address that can be used in the pram to refrence the pram of another channel. its used for things like high_time_ptr in the mcpwm function.
|
|
Set the master channel for a particular channel |
|
Check to see if two channels share the same TPU |
|
Alias for struct _TPUObject, representing a TPU object |
|
Alias for a pointer to struct _TPUObject |
|
Alias for struct _TPUChannel, representing a TPU channel |
|
Alias for a pointer to struct _TPUChannel |
|
TPU error codes. |
|
TPU Channel numbers |
|
TPU Priority numbers. |
|
TPU Word pram slots. |
|
TPU Byte pram slots. |
|
TPU function that the channel is currently initialized for. |
|
Initialize a TPU object. This sets up the TPU with default settings for the prescalers.
|
|
Initialize a TPU object. This lets you set up every aspect of the TPU, except EMU Mode.
|
|
Returns the TCR1 frequency that the TPU is using.
|
|
Returns the TCR2 frequency that the TPU is using.
|
|
Initialize TPU interrupts.
|
|
Request a TPU channel. This function lets you reserve a TPU channel for use by your function.
|
|
Release a TPU channel. The function lets you notify the TPU that you are no longer using a channel.
|
|
Write the CIER for a particular channel. This function allows you to enable or disable interrupts on a per channel basis.
|
|
Read the CISR for a particular channel. This function allows you to get the interrupt status of a channel.
|
|
Clear the CISR for a particular channel. This function allows you to clear the interrupt status of a channel.
|
|
Write the CFSR for a particular channel. This function is used to set the CFSR for a particular channel.
|
|
Read the CFSR for a particular channel. This function is used to get the CFSR for a particular channel.
|
|
Write the HSQR for a particular channel. This function is used to set the HSQR for a particular channel.
|
|
Read the HSQR for a particular channel. This function is used to get the HSQR for a particular channel.
|
|
Write the HSRR for a particular channel. This function is used to set the HSRR for a particular channel.
|
|
Read the HSRR for a particular channel. This function is used to get the HSRR for a particular channel.
|
|
Write the CPR for a particular channel. This function is used to set the CPR for a particular channel.
|
|
Read the CPR for a particular channel. This function is used to set the CPR for a particular channel.
|
|
Write the parameter ram (as word) for a particular channel. This function is used to write a parameter ram entry for a particular channel.
|
|
Write the parameter ram (as byte) for a particular channel. This function is used to write a parameter ram entry for a particular channel.
|
|
Read the parameter ram (as word) for a particular channel. This function is used to read a parameter ram entry for a particular channel.
|
|
Read the parameter ram (as byte) for a particular channel. This function is used to read a parameter ram entry for a particular channel.
|
|
Print the error that last occured on the TPU. This function is used to print the error that last occured as a result of calling one of the TPU functions. This function only prints things when DEBUG is defined.
|