001 // Copyright (c) National Instruments 2009. All Rights Reserved.
002 // Do Not Edit... this file is generated!
003
004 package edu.wpi.first.wpilibj.fpga;
005
006 import com.ni.rio.*;
007
008 public class tAlarm extends tSystem
009 {
010
011 public tAlarm()
012 {
013 super();
014
015 }
016
017 protected void finalize()
018 {
019 super.finalize();
020 }
021
022 public static final int kNumSystems = 1;
023
024
025
026
027
028
029 //////////////////////////////////////////////////////////////////////////////////////////////////
030 // Accessors for Enable
031 //////////////////////////////////////////////////////////////////////////////////////////////////
032 private static final int kAlarm_Enable_Address = 0x8448;
033
034 public static void writeEnable(final boolean value)
035 {
036
037 NiFpga.writeU32(m_DeviceHandle, kAlarm_Enable_Address, (value ? 1 : 0), status);
038 }
039 public static boolean readEnable()
040 {
041
042 return ((NiFpga.readU32(m_DeviceHandle, kAlarm_Enable_Address, status)) != 0 ? true : false);
043 }
044
045 //////////////////////////////////////////////////////////////////////////////////////////////////
046 // Accessors for TriggerTime
047 //////////////////////////////////////////////////////////////////////////////////////////////////
048 private static final int kAlarm_TriggerTime_Address = 0x8444;
049
050 public static void writeTriggerTime(final long value)
051 {
052
053 NiFpga.writeU32(m_DeviceHandle, kAlarm_TriggerTime_Address, (int)(value), status);
054 }
055 public static long readTriggerTime()
056 {
057
058 return (long)((NiFpga.readU32(m_DeviceHandle, kAlarm_TriggerTime_Address, status)) & 0xFFFFFFFFl);
059 }
060
061
062
063
064 }