1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-04 12:24:11 +01:00
LibrePilot/flight/OpenPilot/UAVObjects/inc/pipxtrememodemsettings.h
pip 8b2e1c32d7 Adding PipX modem settings/status UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2218 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-11 10:56:33 +00:00

110 lines
5.8 KiB
C

/**
******************************************************************************
* @addtogroup UAVObjects OpenPilot UAVObjects
* @{
* @addtogroup PipXtremeModemSettings PipXtremeModemSettings
* @brief Settings for the @ref PipXtremeModemSettings
*
* Autogenerated files and functions for PipXtremeModemSettings Object
* @{
*
* @file pipxtrememodemsettings.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Implementation of the PipXtremeModemSettings object. This file has been
* automatically generated by the UAVObjectGenerator.
*
* @note Object definition file: pipxtrememodemsettings.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 PIPXTREMEMODEMSETTINGS_H
#define PIPXTREMEMODEMSETTINGS_H
// Object constants
#define PIPXTREMEMODEMSETTINGS_OBJID 1441129524U
#define PIPXTREMEMODEMSETTINGS_NAME "PipXtremeModemSettings"
#define PIPXTREMEMODEMSETTINGS_METANAME "PipXtremeModemSettingsMeta"
#define PIPXTREMEMODEMSETTINGS_ISSINGLEINST 1
#define PIPXTREMEMODEMSETTINGS_ISSETTINGS 1
#define PIPXTREMEMODEMSETTINGS_NUMBYTES sizeof(PipXtremeModemSettingsData)
// Object access macros
/**
* @function PipXtremeModemSettingsGet(dataOut)
* @brief Populate a PipXtremeModemSettingsData object
* @param[out] dataOut
*/
#define PipXtremeModemSettingsGet(dataOut) UAVObjGetData(PipXtremeModemSettingsHandle(), dataOut)
#define PipXtremeModemSettingsSet(dataIn) UAVObjSetData(PipXtremeModemSettingsHandle(), dataIn)
#define PipXtremeModemSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(PipXtremeModemSettingsHandle(), instId, dataOut)
#define PipXtremeModemSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(PipXtremeModemSettingsHandle(), instId, dataIn)
#define PipXtremeModemSettingsConnectQueue(queue) UAVObjConnectQueue(PipXtremeModemSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
#define PipXtremeModemSettingsConnectCallback(cb) UAVObjConnectCallback(PipXtremeModemSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
#define PipXtremeModemSettingsCreateInstance() UAVObjCreateInstance(PipXtremeModemSettingsHandle())
#define PipXtremeModemSettingsRequestUpdate() UAVObjRequestUpdate(PipXtremeModemSettingsHandle())
#define PipXtremeModemSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(PipXtremeModemSettingsHandle(), instId)
#define PipXtremeModemSettingsUpdated() UAVObjUpdated(PipXtremeModemSettingsHandle())
#define PipXtremeModemSettingsInstUpdated(instId) UAVObjUpdated(PipXtremeModemSettingsHandle(), instId)
#define PipXtremeModemSettingsGetMetadata(dataOut) UAVObjGetMetadata(PipXtremeModemSettingsHandle(), dataOut)
#define PipXtremeModemSettingsSetMetadata(dataIn) UAVObjSetMetadata(PipXtremeModemSettingsHandle(), dataIn)
#define PipXtremeModemSettingsReadOnly(dataIn) UAVObjReadOnly(PipXtremeModemSettingsHandle())
// Object data
typedef struct {
uint32_t Frequency;
uint8_t RFBandwidth;
uint8_t MaxTxPower;
uint8_t AESEncryption;
uint8_t AESEncryptionKey[16];
uint32_t PairedSerialNumberCRC;
} __attribute__((packed)) PipXtremeModemSettingsData;
// Field information
// Field Frequency information
// Field RFBandwidth information
/* Enumeration options for field RFBandwidth */
typedef enum { PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_500=0, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_1000=1, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_2000=2, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_4000=3, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_8000=4, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_9600=5, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_16000=6, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_19200=7, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_24000=8, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_32000=9, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_64000=10, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_128000=11, PIPXTREMEMODEMSETTINGS_RFBANDWIDTH_192000=12 } PipXtremeModemSettingsRFBandwidthOptions;
// Field MaxTxPower information
/* Enumeration options for field MaxTxPower */
typedef enum { PIPXTREMEMODEMSETTINGS_MAXTXPOWER_1=0, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_2=1, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_5=2, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_8=3, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_11=4, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_14=5, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_17=6, PIPXTREMEMODEMSETTINGS_MAXTXPOWER_20=7 } PipXtremeModemSettingsMaxTxPowerOptions;
// Field AESEncryption information
/* Enumeration options for field AESEncryption */
typedef enum { PIPXTREMEMODEMSETTINGS_AESENCRYPTION_FALSE=0, PIPXTREMEMODEMSETTINGS_AESENCRYPTION_TRUE=1 } PipXtremeModemSettingsAESEncryptionOptions;
// Field AESEncryptionKey information
/* Number of elements for field AESEncryptionKey */
#define PIPXTREMEMODEMSETTINGS_AESENCRYPTIONKEY_NUMELEM 16
// Field PairedSerialNumberCRC information
// Generic interface functions
int32_t PipXtremeModemSettingsInitialize();
UAVObjHandle PipXtremeModemSettingsHandle();
#endif // PIPXTREMEMODEMSETTINGS_H
/**
* @}
* @}
*/