AFCPUHardware Class Reference

The AFCPUPXA270 class definition. More...

#include <AFCPUPXA270.h>

Inheritance diagram for AFCPUHardware:
AFCPU AFUncopyable

List of all members.

Public Member Functions

 AFCPUHardware (AFCore *inCore)
 Constructor for the AFCPUPXA270.
virtual AF_STATUS Init ()
 Initializes the CPU.
virtual BOOL Deinit ()
 Deinitializes the CPU.
virtual VOID OutputDMAISR ()
 Clears the output interrupt pending bit.
virtual VOID InputDMAISR ()
 Clears the input interrupt pending bit.
virtual BOOL InitInputDMA ()
 Initializes input DMA.
virtual BOOL InitOutputDMA ()
 Initializes output DMA.
virtual VOID StartInputDMA ()
 Starts the input DMA transfer (CPU <= codec).
virtual VOID StartOutputDMA ()
 Starts the output DMA transfer (CPU => codec).
virtual VOID StopInputDMA ()
 Stops the input DMA transfer.
virtual VOID StopOutputDMA ()
 Stops the output DMA transfer.
virtual DWORD GetAudioDMAPageSize ()
 Retrieve the DMA page size.
virtual DWORD GetAudioDMABufferSize ()
 Retrieve the DMA buffer size.
virtual PBYTE * GetOutputDMABufferVirtual ()
 Method to get a pointer to a virtual output DMA buffer.
virtual PBYTE * GetInputDMABufferVirtual ()
 Method to get a pointer to a virtual input DMA buffer.
virtual VOID OutputDMAThreadInterruptDoneCallback (DWORD outputTransferred, DWORD outputDMAStatus)
 Output DMA transfer done callback.
virtual VOID InputDMAThreadInterruptDoneCallback (DWORD inputTransferred, DWORD inputDMAStatus)
 Input DMA transfer done callback.
virtual AF_STATUS InitI2SBus (AFI2SBusCap *cap)
 Initializes the I2S bus.
virtual VOID StartOutputI2S ()
 Starts the output I2S transfer.
virtual VOID StopOutputI2S ()
 Stops the output I2S transfer.
virtual VOID StartInputI2S ()
 Starts the input I2S transfer.
virtual VOID StopInputI2S ()
 Stops the input I2S transfer.
virtual BOOL PowerUp ()
 S3C6400 CPU power up routine.
virtual BOOL PowerDown ()
 S3C6400 CPU power down routine.
VOID DMAThread ()

Detailed Description

The AFCPUPXA270 class definition.

Definition at line 104 of file AFCPUPXA270.h.


Constructor & Destructor Documentation

AFCPUHardware::AFCPUHardware ( AFCore inCore  )  [inline]

Constructor for the AFCPUPXA270.

In this method the capabilities of the CPU are advertised.

Parameters:
inCore A pointer to the core (AFCore type).

Definition at line 118 of file AFCPUPXA270.h.


Member Function Documentation

BOOL AFCPUHardware::Deinit (  )  [virtual]

Deinitializes the CPU.

Actions performed include: unmapping the registers, releasing DMA channels, etc.

Return values:
TRUE Deinitialization succeeded.
FALSE Deinitialization failed.

Implements AFCPU.

Definition at line 520 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::DMAThread (  ) 

Definition at line 327 of file AFCPUPXA270.cpp.

virtual DWORD AFCPUHardware::GetAudioDMABufferSize (  )  [inline, virtual]

Retrieve the DMA buffer size.

Returns:
The DMA buffer size.

Implements AFCPU.

Definition at line 261 of file AFCPUPXA270.h.

virtual DWORD AFCPUHardware::GetAudioDMAPageSize (  )  [inline, virtual]

Retrieve the DMA page size.

Returns:
The DMA page size.

Implements AFCPU.

Definition at line 247 of file AFCPUPXA270.h.

virtual PBYTE* AFCPUHardware::GetInputDMABufferVirtual (  )  [inline, virtual]

Method to get a pointer to a virtual input DMA buffer.

Returns:
Pointer to virtual input DMA buffer (in bytes).

Implements AFCPU.

Definition at line 289 of file AFCPUPXA270.h.

virtual PBYTE* AFCPUHardware::GetOutputDMABufferVirtual (  )  [inline, virtual]

Method to get a pointer to a virtual output DMA buffer.

Returns:
Pointer to virtual output DMA buffer (in bytes).

Implements AFCPU.

Definition at line 275 of file AFCPUPXA270.h.

AF_STATUS AFCPUHardware::Init (  )  [virtual]

Initializes the CPU.

Actions performed include: mapping the registers, DMA buffers, etc.

Returns:
Initialization status (AF_STATUS).

Implements AFCPU.

Definition at line 647 of file AFCPUPXA270.cpp.

AF_STATUS AFCPUHardware::InitI2SBus ( AFI2SBusCap cap  )  [virtual]

Initializes the I2S bus.

Parameters:
cap Pointer to the particular I2S configuration (AFI2SBusCap) to be initialized.
Returns:
Initialization status (AF_STATUS).

Implements AFCPU.

Definition at line 585 of file AFCPUPXA270.cpp.

BOOL AFCPUHardware::InitInputDMA (  )  [virtual]

Initializes input DMA.

Return values:
TRUE Initialization succeeded.
FALSE Intialization failed.

Implements AFCPU.

Definition at line 170 of file AFCPUPXA270.cpp.

BOOL AFCPUHardware::InitOutputDMA (  )  [virtual]

Initializes output DMA.

Return values:
TRUE Initialization succeeded.
FALSE Intialization failed.

Implements AFCPU.

Definition at line 185 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::InputDMAISR (  )  [virtual]

Clears the input interrupt pending bit.

Implements AFCPU.

Definition at line 387 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::InputDMAThreadInterruptDoneCallback ( DWORD  inputTransferred,
DWORD  inputDMAStatus 
) [virtual]

Input DMA transfer done callback.

This method allows the CPU to perform hardware-specific actions after a single input DMA transfer.

Parameters:
inputTransferred The number of bytes to be transferred.
inputDMAStatus A flag indicating which DMA buffer to enable.

Implements AFCPU.

Definition at line 123 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::OutputDMAISR (  )  [virtual]

Clears the output interrupt pending bit.

Implements AFCPU.

Definition at line 399 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::OutputDMAThreadInterruptDoneCallback ( DWORD  outputTransferred,
DWORD  outputDMAStatus 
) [virtual]

Output DMA transfer done callback.

This method allows the CPU to perform hardware-specific actions after a single output DMA transfer.

Parameters:
outputTransferred The number of bytes to be transferred.
outputDMAStatus A flag indicating which DMA buffer to enable.

Implements AFCPU.

Definition at line 108 of file AFCPUPXA270.cpp.

BOOL AFCPUHardware::PowerDown (  )  [virtual]

S3C6400 CPU power down routine.

Return values:
TRUE Powering down succeeded.
FALSE Powering down failed.

Implements AFCPU.

Definition at line 690 of file AFCPUPXA270.cpp.

BOOL AFCPUHardware::PowerUp (  )  [virtual]

S3C6400 CPU power up routine.

Return values:
TRUE Powering up succeeded.
FALSE Powering up failed.

Implements AFCPU.

Definition at line 677 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StartInputDMA (  )  [virtual]

Starts the input DMA transfer (CPU <= codec).

Implements AFCPU.

Definition at line 138 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StartInputI2S (  )  [virtual]

Starts the input I2S transfer.

Implements AFCPU.

Definition at line 639 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StartOutputDMA (  )  [virtual]

Starts the output DMA transfer (CPU => codec).

Implements AFCPU.

Definition at line 149 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StartOutputI2S (  )  [virtual]

Starts the output I2S transfer.

Implements AFCPU.

Definition at line 631 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StopInputDMA (  )  [virtual]

Stops the input DMA transfer.

Implements AFCPU.

Definition at line 160 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StopInputI2S (  )  [virtual]

Stops the input I2S transfer.

Implements AFCPU.

Definition at line 643 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StopOutputDMA (  )  [virtual]

Stops the output DMA transfer.

Implements AFCPU.

Definition at line 165 of file AFCPUPXA270.cpp.

VOID AFCPUHardware::StopOutputI2S (  )  [virtual]

Stops the output I2S transfer.

Implements AFCPU.

Definition at line 635 of file AFCPUPXA270.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Sep 27 12:36:35 2009 for Audio Framework by  doxygen 1.6.1