#include "ex1.h"Go to the source code of this file.
Defines | |
| #define | DO_MENU "i - init, H/L - all H/L, m - DO_MENU e - exit" |
| #define | AD7997_MENU "\n\rR - ReadConfRegister, (1,2,3,4,5,6,7,8) - Read Channel\n\rS - SetSycleTime \n\rt - H/L-0/1Change chip \n\rE - Exit" |
| #define | A_MENU "\n\ri-init, c-Select Chip, l-soft clear, p/m-Select Channel, +/- - value up/down, f-SelectFunction, u/d-up/down, s-set the parameters h-help, e-exit" |
| #define | RAMTRON_HELP "\n\rRamtron:i = init r = read, w = write, +/-, h = help, e = exit" |
| #define | C_MENU "\n\r\ti-CansInit\n\ro-off\n\rx(1,2,3,4)-SendToCAN1,2,4 as station x\n\rr-read on CAN" |
Functions | |
| void | DoMenu () |
| void | AD7997_Menu () |
| void | AMenu (void) |
| void | RMenu (void) |
| void | CANMenu (void) |
| #define A_MENU "\n\ri-init, c-Select Chip, l-soft clear, p/m-Select Channel, +/- - value up/down, f-SelectFunction, u/d-up/down, s-set the parameters h-help, e-exit" |
| #define AD7997_MENU "\n\rR - ReadConfRegister, (1,2,3,4,5,6,7,8) - Read Channel\n\rS - SetSycleTime \n\rt - H/L-0/1Change chip \n\rE - Exit" |
| #define C_MENU "\n\r\ti-CansInit\n\ro-off\n\rx(1,2,3,4)-SendToCAN1,2,4 as station x\n\rr-read on CAN" |
| #define DO_MENU "i - init, H/L - all H/L, m - DO_MENU e - exit" |
| #define RAMTRON_HELP "\n\rRamtron:i = init r = read, w = write, +/-, h = help, e = exit" |
| void AD7997_Menu | ( | ) |
Definition at line 113 of file ex1_menu.c.
References AD7997_CONF_REG, AD7997_MENU, AD7997_ReadAnalogValue(), AD7997_SetCycleTimeRegister(), I2C_AD7997BRU_1_H_R, I2C_AD7997BRU_1_H_W, I2C_AD7997BRU_1_L_R, I2C_AD7997BRU_1_L_W, I2C_I2STAT, I2C_SetSTO(), printf(), ReadOnI2C(), SendSlaveAdress(), UART0_LSR, UARTgetchar(), WD_Reset(), and WriteOnI2C().
Referenced by main().
| void AMenu | ( | void | ) |
Definition at line 217 of file ex1_menu.c.
References A_MENU, AD5382_ControlRegister(), AD5382_SoftClr(), AD5382_SoftPowerDown(), AD5382_SoftPowerUp(), AD5382Write(), AD5391_ControlRegisterWrite(), AD5391_SoftClr(), AD5391_SoftPowerDown(), AD5391_SoftPowerUp(), AD5391Write(), I2C_Status(), printf(), True, UART0_LSR, UARTgetchar(), and WD_Reset().
Referenced by main().
| void CANMenu | ( | void | ) |
Definition at line 604 of file ex1_menu.c.
References C_MENU, CAN_Off(), CanRead(), CansInit(), GetStatus(), iAddress, printf(), UART0_LSR, UARTgetchar(), and WD_Reset().
Referenced by main().
| void DoMenu | ( | ) |
Definition at line 30 of file ex1_menu.c.
References DO_H(), DO_L(), DO_MAX_Init(), DO_MENU, I2C_I2STAT, printf(), UART0_LSR, UARTgetchar(), and WD_Reset().
Referenced by main().
| void RMenu | ( | void | ) |
Definition at line 528 of file ex1_menu.c.
References I2C_I2STAT, printf(), RAMTRON_HELP, RamtronInit(), RamtronReadByte(), RamtronWriteByte(), UART0_LSR, UARTgetchar(), and WD_Reset().
Referenced by main().
1.4.7