ubloxcfg
u-blox 9 configuration helpers
Loading...
Searching...
No Matches
ubloxcfg.c File Reference

u-blox 9 positioning receivers configuration library More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <inttypes.h>
#include <ctype.h>
#include "config.h"
#include "ubloxcfg.h"

Go to the source code of this file.

Functions

const UBLOXCFG_ITEM_tubloxcfg_getItemByName (const char *name)
 Get configuration item info by name.
 
const UBLOXCFG_ITEM_tubloxcfg_getItemById (const uint32_t id)
 Get configuration item info by key ID.
 
const UBLOXCFG_ITEM_t ** ubloxcfg_getAllItems (int *num)
 Get list of all items.
 
const UBLOXCFG_MSGRATE_tubloxcfg_getMsgRateCfg (const char *msgName)
 Get configuration items for output message rate configuration.
 
const UBLOXCFG_MSGRATE_t ** ubloxcfg_getAllMsgRateCfgs (int *num)
 Get list of all output message rate configurations.
 
bool ubloxcfg_makeData (uint8_t *data, const int size, const UBLOXCFG_KEYVAL_t *keyVal, const int nKeyVal, int *dataSize)
 Configuration data from key-value list.
 
bool ubloxcfg_parseData (const uint8_t *data, const int size, UBLOXCFG_KEYVAL_t *keyVal, const int maxKeyVal, int *nKeyVal)
 Key-value list from configuration data.
 
const char * ubloxcfg_typeStr (UBLOXCFG_TYPE_t type)
 Stringify item type.
 
bool ubloxcfg_stringifyValue (char *str, const int size, const UBLOXCFG_TYPE_t type, const UBLOXCFG_ITEM_t *item, const UBLOXCFG_VALUE_t *val)
 Stringify item value.
 
bool ubloxcfg_splitValueStr (char *str, char **valueStr, char **prettyStr)
 Split stringified value string.
 
bool ubloxcfg_stringifyKeyVal (char *str, const int size, const UBLOXCFG_KEYVAL_t *keyVal)
 Stringify key-value pair (for debugging)
 
bool ubloxcfg_valueFromString (const char *str, UBLOXCFG_TYPE_t type, const UBLOXCFG_ITEM_t *item, UBLOXCFG_VALUE_t *value)
 Convert string to value.
 
const char * ubloxcfg_layerName (const UBLOXCFG_LAYER_t layer)
 Get name for layer.
 
bool ubloxcfg_layerFromName (const char *name, UBLOXCFG_LAYER_t *layer)
 Get layer from name.
 
uint16_t ubloxcfg_getVersion (void)
 Get library version.
 
const char ** ubloxcfg_getSources (int *numSources)
 Get strings describing the data sources.
 

Detailed Description

u-blox 9 positioning receivers configuration library

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Definition in file ubloxcfg.c.