Carmel (MAXREFDES18#) Code Documentation  V01.00
High Accuracy Analog Current/Voltage Output
 All Files Functions Variables Macros Pages
MAXREFDES18.h File Reference
#include "xgpio.h"
#include "xgpio_l.h"
#include "xparameters.h"
#include "xuartlite.h"
#include "xspi_l.h"
#include "xspi.h"
#include "xiic_l.h"
#include "utilities.h"
#include <string.h>
#include <stdio.h>
#include "platform.h"

Go to the source code of this file.

Macros

#define DEFAULT_HYPERTERMINAL_UART_ID   XPAR_USB_UART_DEVICE_ID
 macro used to abstract Physical Port of Hyperterminal UART
 
#define DEFAULT_HYPERTERMINAL_UART_ADDRESS   XPAR_USB_UART_BASEADDR
 
#define ABOUT_ONE_SECOND   3508380
 approx 1 second delay when used as argument with function delay(numberCyclesToDelay)
 
#define PMOD_TYPE_UART   0
 value which specifies UART in maximProduct structure
 
#define PMOD_TYPE_SPI   1
 value which specifies SPI in maximProduct structure
 
#define PMOD_TYPE_GPIO   2
 value which specifies GPIO in maximProduct structure
 
#define PMOD_TYPE_I2C   3
 value which specifies I2C in maximProduct structure
 
#define PMOD_PORT_TYPE_UART   0x00
 value to switch UART controller into a Pmod port in max_configure_PMOD_port
 
#define PMOD_PORT_TYPE_SPI   0x01
 value to switch SPI controller into a Pmod port in max_configure_PMOD_port
 
#define PMOD_PORT_TYPE_GPIO   0x02
 value to switch GPIO controller into a Pmod port in max_configure_PMOD_port
 
#define PMOD_PORT_TYPE_I2C   0x03
 value to switch I2C controller into a Pmod port in max_configure_PMOD_port
 
#define INPUT_STRING_MAX_SIZE   16
 

Variables

XGpio g_xGpioPmodPortA
 
XGpio g_xGpioPmodPortB
 
char g_sInputString [INPUT_STRING_MAX_SIZE]
 

Detailed Description


      Project: Carmel (MAXREFDES18#)
     Filename: MAXREFDES18.h
  Description: This module contains the Main application for the
               Avnet LX9 Board implementation of the MAXREFDES18
               example program.

Revision History:
08-19-13 Rev 01.00 MG 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 MAXREFDES18.h.

Macro Definition Documentation

#define ABOUT_ONE_SECOND   3508380

approx 1 second delay when used as argument with function delay(numberCyclesToDelay)

Definition at line 78 of file MAXREFDES18.h.

#define DEFAULT_HYPERTERMINAL_UART_ADDRESS   XPAR_USB_UART_BASEADDR

Definition at line 76 of file MAXREFDES18.h.

#define DEFAULT_HYPERTERMINAL_UART_ID   XPAR_USB_UART_DEVICE_ID

macro used to abstract Physical Port of Hyperterminal UART

Definition at line 75 of file MAXREFDES18.h.

#define INPUT_STRING_MAX_SIZE   16

Definition at line 92 of file MAXREFDES18.h.

#define PMOD_PORT_TYPE_GPIO   0x02

value to switch GPIO controller into a Pmod port in max_configure_PMOD_port

Definition at line 89 of file MAXREFDES18.h.

#define PMOD_PORT_TYPE_I2C   0x03

value to switch I2C controller into a Pmod port in max_configure_PMOD_port

Definition at line 90 of file MAXREFDES18.h.

#define PMOD_PORT_TYPE_SPI   0x01

value to switch SPI controller into a Pmod port in max_configure_PMOD_port

Definition at line 88 of file MAXREFDES18.h.

#define PMOD_PORT_TYPE_UART   0x00

value to switch UART controller into a Pmod port in max_configure_PMOD_port

Definition at line 87 of file MAXREFDES18.h.

#define PMOD_TYPE_GPIO   2

value which specifies GPIO in maximProduct structure

Definition at line 84 of file MAXREFDES18.h.

#define PMOD_TYPE_I2C   3

value which specifies I2C in maximProduct structure

Definition at line 85 of file MAXREFDES18.h.

#define PMOD_TYPE_SPI   1

value which specifies SPI in maximProduct structure

Definition at line 83 of file MAXREFDES18.h.

#define PMOD_TYPE_UART   0

value which specifies UART in maximProduct structure

Definition at line 82 of file MAXREFDES18.h.

Variable Documentation

char g_sInputString[INPUT_STRING_MAX_SIZE]

Definition at line 86 of file MAXREFDES18.c.

XGpio g_xGpioPmodPortA

Definition at line 87 of file MAXREFDES18.c.

XGpio g_xGpioPmodPortB

Definition at line 88 of file MAXREFDES18.c.