MAXREFDES71# Code Documentation
V01.00
MAXREFDES71# 2-Channel Analog Input/Analog Output
|
#include "xscugic.h"
Go to the source code of this file.
Functions | |
u32 | start_sampling (u32 unSampleSize, int nSampleRate, u16 *auSamplesCh1, u16 *auSamplesCh2) |
Receive a block of samples at a constant rate. | |
void | continuous_sampling (int nChannel) |
Continuously reads the ADC and display the data via the HyperTerminal. | |
void | signal_replication (int nRepRate) |
Continuously reproduce the analog input signals on the outputs. | |
int | SetupInterruptSystem (XScuGic *IntcInstancePtr) |
Setup the interrupt handler. | |
void | ReadADCHandler (void *CallBackRef) |
Project: MAXREFDES71# Filename: maximDeviceSpecificUtilities.h Description: This module uses the AXI_MILLBRAE custom ip core Ver 1.00a to control the ADC and DAC on MAXREFDES71#. 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:
12-17-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.
void continuous_sampling | ( | int | nChannel | ) |
Continuously reads the ADC and display the data via the HyperTerminal.
Channel | - selected ADC channel number |
None |
Definition at line 225 of file maximDeviceSpecificUtilities.c.
void ReadADCHandler | ( | void * | CallBackRef | ) |
int SetupInterruptSystem | ( | XScuGic * | IntcInstancePtr | ) |
Setup the interrupt handler.
[in] | *IntcInstancePtr | - IntcInstancePtr is the instance of the interrupt controller |
XST_SUCCESS | to indicate success, otherwise XST_FAILURE |
Definition at line 285 of file maximDeviceSpecificUtilities.c.
void signal_replication | ( | int | nRepRate | ) |
Continuously reproduce the analog input signals on the outputs.
None |
None |
Definition at line 173 of file maximDeviceSpecificUtilities.c.
u32 start_sampling | ( | u32 | unSampleSize, |
int | nSampleRate, | ||
u16 * | auSamplesCh1, | ||
u16 * | auSamplesCh2 | ||
) |
Receive a block of samples at a constant rate.
[in] | unSampleSize | - Sample size |
[in] | nSampleRate | - Sample rate |
[out] | *auSamplesChx | - sampled data |
Number | of samples received |
Definition at line 81 of file maximDeviceSpecificUtilities.c.