Petaluma (MAXREFDES30#) Code Documentation  V01.00
16-Bit, 8-Ch, +/-10V input, Simultaneous-Sampling Analog Front End
 All Data Structures Files Functions Variables Macros Pages
maximDeviceSpecificUtilities.h File Reference

Go to the source code of this file.

Functions

u32 start_sampling (u32 unSampleSize, int nSampleRate, u16 *auSamplesCh0, u16 *auSamplesCh1, u16 *auSamplesCh2, u16 *auSamplesCh3, u16 *auSamplesCh4, u16 *auSamplesCh5, u16 *auSamplesCh6, u16 *auSamplesCh7)
 Receive a block of samples at a constant rate.
 
void continuous_sampling (int Channel)
 Continuously reads the ADC and display the data via the HyperTerminal.
 

Detailed Description


      Project: Petaluma (MAXREFDES30#)
     Filename: maximDeviceSpecificUtilities.h
  Description: This module uses the AXI_MAX11046 custom ip core Ver 1.00a to
               read ADC data from the Petaluma MAXREFDES30#.  These
               low level functions could be cut/pasted into the user's
               application as a starting point for development of an end
               application.

Revision History:
09-20-13 Rev 01.00 GL Initial Release


This code follows the following naming conventions:


char chPmodValue
char (array) sPmodString[16]
float fPmodValue
int nPmodValue
int (array) anPmodValue[16]
u16 uPmodValue
u16 (array) auPmodValue[16]
u8 uchPmodValue
u8 (array) auchPmodBuffer[16]
unsigned int unPmodValue
int * punPmodValue


Definition in file maximDeviceSpecificUtilities.h.

Function Documentation

void continuous_sampling ( int  Channel)

Continuously reads the ADC and display the data via the HyperTerminal.

Details
This function reads the ADC every half of a second and display the data
via the Hyperterminal. Press the ESC key to return to the main menu.
Parameters
None
Return values
None

Definition at line 185 of file maximDeviceSpecificUtilities.c.

u32 start_sampling ( u32  unSampleSize,
int  nSampleRate,
u16 *  auSamplesCh0,
u16 *  auSamplesCh1,
u16 *  auSamplesCh2,
u16 *  auSamplesCh3,
u16 *  auSamplesCh4,
u16 *  auSamplesCh5,
u16 *  auSamplesCh6,
u16 *  auSamplesCh7 
)

Receive a block of samples at a constant rate.

Details
This function is used to receive a block of samples at a constant
sampling rate. The size of the block is defined in u16 *auSampleSize.
And the sampling rate is defined in int nSampleRate. The Sampled data
will be stored in an array *auSamples
Parameters
[in]unSampleSize- Sample size
[in]nSampleRate- Sample rate
[out]*auSamples- An array
Return values
Numberof samples received

Definition at line 87 of file maximDeviceSpecificUtilities.c.