mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
6b6740109e
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@632 ebee16cc-31ac-478f-84a7-5cbb03baadba
75 lines
3.5 KiB
C
75 lines
3.5 KiB
C
/**
|
|
******************************************************************************
|
|
*
|
|
* @file systemsettings.h
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
* @brief Implementation of the SystemSettings object. This file has been
|
|
* automatically generated by the UAVObjectGenerator.
|
|
*
|
|
* @note Object definition file: systemsettings.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 SYSTEMSETTINGS_H
|
|
#define SYSTEMSETTINGS_H
|
|
|
|
// Object constants
|
|
#define SYSTEMSETTINGS_OBJID 59202798U
|
|
#define SYSTEMSETTINGS_NAME "SystemSettings"
|
|
#define SYSTEMSETTINGS_METANAME "SystemSettingsMeta"
|
|
#define SYSTEMSETTINGS_ISSINGLEINST 1
|
|
#define SYSTEMSETTINGS_ISSETTINGS 1
|
|
#define SYSTEMSETTINGS_NUMBYTES sizeof(SystemSettingsData)
|
|
|
|
// Object access macros
|
|
#define SystemSettingsGet(dataOut) UAVObjGetData(SystemSettingsHandle(), dataOut)
|
|
#define SystemSettingsSet(dataIn) UAVObjSetData(SystemSettingsHandle(), dataIn)
|
|
#define SystemSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(SystemSettingsHandle(), instId, dataOut)
|
|
#define SystemSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(SystemSettingsHandle(), instId, dataIn)
|
|
#define SystemSettingsConnectQueue(queue) UAVObjConnectQueue(SystemSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
|
#define SystemSettingsConnectCallback(cb) UAVObjConnectCallback(SystemSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
|
#define SystemSettingsCreateInstance() UAVObjCreateInstance(SystemSettingsHandle())
|
|
#define SystemSettingsRequestUpdate() UAVObjRequestUpdate(SystemSettingsHandle())
|
|
#define SystemSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(SystemSettingsHandle(), instId)
|
|
#define SystemSettingsUpdated() UAVObjUpdated(SystemSettingsHandle())
|
|
#define SystemSettingsInstUpdated(instId) UAVObjUpdated(SystemSettingsHandle(), instId)
|
|
#define SystemSettingsGetMetadata(dataOut) UAVObjGetMetadata(SystemSettingsHandle(), dataOut)
|
|
#define SystemSettingsSetMetadata(dataIn) UAVObjSetMetadata(SystemSettingsHandle(), dataIn)
|
|
|
|
// Object data
|
|
typedef struct {
|
|
uint8_t AirframeType;
|
|
|
|
} __attribute__((packed)) SystemSettingsData;
|
|
|
|
// Field information
|
|
// Field AirframeType information
|
|
/* Enumeration options for field AirframeType */
|
|
typedef enum { SYSTEMSETTINGS_AIRFRAMETYPE_FIXEDWING=0, SYSTEMSETTINGS_AIRFRAMETYPE_FIXEDWINGELEVON=1, SYSTEMSETTINGS_AIRFRAMETYPE_VTOL=2, } SystemSettingsAirframeTypeOptions;
|
|
|
|
|
|
// Generic interface functions
|
|
int32_t SystemSettingsInitialize();
|
|
UAVObjHandle SystemSettingsHandle();
|
|
|
|
#endif // SYSTEMSETTINGS_H
|