2010-03-29 00:23:57 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
2010-08-27 02:15:42 +02:00
|
|
|
* @addtogroup UAVObjects OpenPilot UAVObjects
|
|
|
|
* @{
|
|
|
|
* @addtogroup ExampleSettings ExampleSettings
|
|
|
|
* @brief Example settings object
|
|
|
|
*
|
|
|
|
* Autogenerated files and functions for ExampleSettings Object
|
|
|
|
|
|
|
|
* @{
|
2010-03-29 00:23:57 +02:00
|
|
|
*
|
|
|
|
* @file examplesettings.h
|
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
|
|
* @brief Implementation of the ExampleSettings object. This file has been
|
|
|
|
* automatically generated by the UAVObjectGenerator.
|
|
|
|
*
|
|
|
|
* @note Object definition file: examplesettings.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 EXAMPLESETTINGS_H
|
|
|
|
#define EXAMPLESETTINGS_H
|
|
|
|
|
|
|
|
// Object constants
|
2010-04-02 05:26:02 +02:00
|
|
|
#define EXAMPLESETTINGS_OBJID 1640607828U
|
2010-03-29 00:23:57 +02:00
|
|
|
#define EXAMPLESETTINGS_NAME "ExampleSettings"
|
2010-04-28 03:54:24 +02:00
|
|
|
#define EXAMPLESETTINGS_METANAME "ExampleSettingsMeta"
|
2010-03-29 00:23:57 +02:00
|
|
|
#define EXAMPLESETTINGS_ISSINGLEINST 1
|
|
|
|
#define EXAMPLESETTINGS_ISSETTINGS 1
|
|
|
|
#define EXAMPLESETTINGS_NUMBYTES sizeof(ExampleSettingsData)
|
|
|
|
|
2010-04-04 04:11:51 +02:00
|
|
|
// Object access macros
|
2010-08-27 02:15:42 +02:00
|
|
|
/**
|
|
|
|
* @function ExampleSettingsGet(dataOut)
|
|
|
|
* @brief Populate a ExampleSettingsData object
|
|
|
|
* @param[out] dataOut
|
|
|
|
*/
|
2010-04-02 05:26:02 +02:00
|
|
|
#define ExampleSettingsGet(dataOut) UAVObjGetData(ExampleSettingsHandle(), dataOut)
|
|
|
|
#define ExampleSettingsSet(dataIn) UAVObjSetData(ExampleSettingsHandle(), dataIn)
|
2010-04-04 04:11:51 +02:00
|
|
|
#define ExampleSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(ExampleSettingsHandle(), instId, dataOut)
|
|
|
|
#define ExampleSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(ExampleSettingsHandle(), instId, dataIn)
|
2010-04-02 05:26:02 +02:00
|
|
|
#define ExampleSettingsConnectQueue(queue) UAVObjConnectQueue(ExampleSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
|
|
|
#define ExampleSettingsConnectCallback(cb) UAVObjConnectCallback(ExampleSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
2010-04-04 04:11:51 +02:00
|
|
|
#define ExampleSettingsCreateInstance() UAVObjCreateInstance(ExampleSettingsHandle())
|
|
|
|
#define ExampleSettingsRequestUpdate() UAVObjRequestUpdate(ExampleSettingsHandle())
|
|
|
|
#define ExampleSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ExampleSettingsHandle(), instId)
|
|
|
|
#define ExampleSettingsUpdated() UAVObjUpdated(ExampleSettingsHandle())
|
|
|
|
#define ExampleSettingsInstUpdated(instId) UAVObjUpdated(ExampleSettingsHandle(), instId)
|
|
|
|
#define ExampleSettingsGetMetadata(dataOut) UAVObjGetMetadata(ExampleSettingsHandle(), dataOut)
|
|
|
|
#define ExampleSettingsSetMetadata(dataIn) UAVObjSetMetadata(ExampleSettingsHandle(), dataIn)
|
2010-08-27 02:15:42 +02:00
|
|
|
#define ExampleSettingsReadOnly(dataIn) UAVObjReadOnly(ExampleSettingsHandle(), dataIn)
|
2010-03-29 00:23:57 +02:00
|
|
|
|
|
|
|
// Object data
|
|
|
|
typedef struct {
|
2010-04-02 05:26:02 +02:00
|
|
|
int32_t UpdatePeriod;
|
|
|
|
int32_t StepSize;
|
|
|
|
uint8_t StepDirection;
|
2010-03-29 00:23:57 +02:00
|
|
|
|
|
|
|
} __attribute__((packed)) ExampleSettingsData;
|
|
|
|
|
2010-04-27 03:55:28 +02:00
|
|
|
// Field information
|
|
|
|
// Field UpdatePeriod information
|
|
|
|
// Field StepSize information
|
|
|
|
// Field StepDirection information
|
2010-04-21 04:49:11 +02:00
|
|
|
/* Enumeration options for field StepDirection */
|
2010-08-15 01:42:07 +02:00
|
|
|
typedef enum { EXAMPLESETTINGS_STEPDIRECTION_UP=0, EXAMPLESETTINGS_STEPDIRECTION_DOWN=1 } ExampleSettingsStepDirectionOptions;
|
2010-04-01 04:03:40 +02:00
|
|
|
|
|
|
|
|
2010-03-29 00:23:57 +02:00
|
|
|
// Generic interface functions
|
|
|
|
int32_t ExampleSettingsInitialize();
|
2010-04-02 05:26:02 +02:00
|
|
|
UAVObjHandle ExampleSettingsHandle();
|
2010-03-29 00:23:57 +02:00
|
|
|
|
|
|
|
#endif // EXAMPLESETTINGS_H
|
2010-08-27 02:15:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
* @}
|
|
|
|
*/
|