/** ****************************************************************************** * @addtogroup UAVObjects OpenPilot UAVObjects * @{ * @addtogroup WatchdogStatus WatchdogStatus * @brief For monitoring the flags in the watchdog and especially the bootup flags * * Autogenerated files and functions for WatchdogStatus Object * @{ * * @file watchdogstatus.h * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. * @brief Implementation of the WatchdogStatus object. This file has been * automatically generated by the UAVObjectGenerator. * * @note Object definition file: watchdogstatus.xml. * This is an automatically generated file. * DO NOT modify manually. * * @see The GNU Public License (GPL) Version 3 * *****************************************************************************/ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef WATCHDOGSTATUS_H #define WATCHDOGSTATUS_H // Object constants #define WATCHDOGSTATUS_OBJID 3594971408U #define WATCHDOGSTATUS_NAME "WatchdogStatus" #define WATCHDOGSTATUS_METANAME "WatchdogStatusMeta" #define WATCHDOGSTATUS_ISSINGLEINST 1 #define WATCHDOGSTATUS_ISSETTINGS 0 #define WATCHDOGSTATUS_NUMBYTES sizeof(WatchdogStatusData) // Object access macros /** * @function WatchdogStatusGet(dataOut) * @brief Populate a WatchdogStatusData object * @param[out] dataOut */ #define WatchdogStatusGet(dataOut) UAVObjGetData(WatchdogStatusHandle(), dataOut) #define WatchdogStatusSet(dataIn) UAVObjSetData(WatchdogStatusHandle(), dataIn) #define WatchdogStatusInstGet(instId, dataOut) UAVObjGetInstanceData(WatchdogStatusHandle(), instId, dataOut) #define WatchdogStatusInstSet(instId, dataIn) UAVObjSetInstanceData(WatchdogStatusHandle(), instId, dataIn) #define WatchdogStatusConnectQueue(queue) UAVObjConnectQueue(WatchdogStatusHandle(), queue, EV_MASK_ALL_UPDATES) #define WatchdogStatusConnectCallback(cb) UAVObjConnectCallback(WatchdogStatusHandle(), cb, EV_MASK_ALL_UPDATES) #define WatchdogStatusCreateInstance() UAVObjCreateInstance(WatchdogStatusHandle()) #define WatchdogStatusRequestUpdate() UAVObjRequestUpdate(WatchdogStatusHandle()) #define WatchdogStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(WatchdogStatusHandle(), instId) #define WatchdogStatusUpdated() UAVObjUpdated(WatchdogStatusHandle()) #define WatchdogStatusInstUpdated(instId) UAVObjUpdated(WatchdogStatusHandle(), instId) #define WatchdogStatusGetMetadata(dataOut) UAVObjGetMetadata(WatchdogStatusHandle(), dataOut) #define WatchdogStatusSetMetadata(dataIn) UAVObjSetMetadata(WatchdogStatusHandle(), dataIn) #define WatchdogStatusReadOnly(dataIn) UAVObjReadOnly(WatchdogStatusHandle()) // Object data typedef struct { uint16_t BootupFlags; uint16_t ActiveFlags; } __attribute__((packed)) WatchdogStatusData; // Field information // Field BootupFlags information // Field ActiveFlags information // Generic interface functions int32_t WatchdogStatusInitialize(); UAVObjHandle WatchdogStatusHandle(); #endif // WATCHDOGSTATUS_H /** * @} * @} */