![]() |
ParaLib 2.0.15-master SHA: 2e03d68caa
|
Parameter Interface for connection with a PC. More...
#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "PARA_Lib.h"Functions | |
| uint32_t | GetParameterCount (void) |
| Get the number of the existent parameters. More... | |
| uint32_t | GetGroupCount (void) |
| Get the number of the existent parameter-groups. More... | |
| Parameter * | GetParameter (uint32_t ParaID) |
| Get the parameter of the given ID. More... | |
| Group * | GetGroup (uint32_t GroupID) |
| Get the parameter-Group of the given ID. More... | |
| int32_t | GetDataTypeSize (uint8_t Type) |
| Calculate the Size of a parameter-type. More... | |
| Parameter * | GetNextParaID (uint16_t ParaID, uint16_t GruppenID) |
| Get next parameter in parameter-list. More... | |
| uint32_t | GetStringParameterLength (Parameter *p, uint16_t subID) |
| Get the length of the string data of the given parameter. More... | |
Variables | |
| int32_t | ANZAHL_PARAMETER |
| Number of existent parameters. Must be defined in main program. More... | |
| const int32_t | ANZAHL_GRUPPEN |
| Number of existent parameter-groups. Must be defined in main program. More... | |
Parameter Interface for connection with a PC.
© Copyright 2017-2022 Copyright: Retostronik GmbH Stütingstraße 30 58285 Gevelsberg
| int32_t GetDataTypeSize | ( | uint8_t | Type | ) |
Calculate the Size of a parameter-type.
| Type | Parameter-Type |
| Group * GetGroup | ( | uint32_t | GroupID | ) |
| uint32_t GetGroupCount | ( | void | ) |
Get the number of the existent parameter-groups.
The number of groups must be defined in main progframm in the constant ANZAHL_GRUPPEN
| Parameter * GetNextParaID | ( | uint16_t | ParaID, |
| uint16_t | GruppenID | ||
| ) |
Get next parameter in parameter-list.
The next entry in parameter-list after the current parameter-id in the given Parameter-group is given .
| ParaID | Parameter-ID of the actual Parameter. |
| GruppenID | Group-ID of the searched Parameter-Group. |
| Parameter * GetParameter | ( | uint32_t | ParaID | ) |
| uint32_t GetParameterCount | ( | void | ) |
Get the number of the existent parameters.
The number of parameters must be defined in main progframm in the constant ANZAHL_PARAMETER
| uint32_t GetStringParameterLength | ( | Parameter * | p, |
| uint16_t | subID | ||
| ) |
Get the length of the string data of the given parameter.
If the parameter is not a string-type, the output value is nonsense!
| p | actual Parameter. |
| subID | Sub-ID of the parameter |
|
extern |
Number of existent parameter-groups. Must be defined in main program.
|
extern |
Number of existent parameters. Must be defined in main program.