- config parser modified for complex pin type

This commit is contained in:
Sascha Ittner
2015-02-24 19:07:55 +01:00
parent c9fa7e8197
commit ff63dd8ec7
5 changed files with 164 additions and 16 deletions

View File

@@ -21,16 +21,14 @@
#include "lcec.h"
#include "lcec_conf.h"
#define LCEC_GENERIC_MAX_SUBPINS 32
typedef struct {
char name[LCEC_CONF_STR_MAXLEN];
hal_type_t type;
int floatUnsigned;
LCEC_PDOENT_TYPE_T subType;
hal_float_t floatScale;
hal_float_t floatOffset;
hal_pin_dir_t dir;
void *pin[LCEC_GENERIC_MAX_SUBPINS];
void *pin[LCEC_CONF_GENERIC_MAX_SUBPINS];
uint16_t pdo_idx;
uint8_t pdo_sidx;
int pdo_len;