2018-01-15 11:47:23 +00:00
|
|
|
/*
|
|
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
*/
|
2016-12-23 16:28:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
2017-12-04 06:51:42 +00:00
|
|
|
/* Attributes State Machine */
|
2016-12-23 16:28:47 +00:00
|
|
|
enum
|
|
|
|
{
|
2017-11-01 08:46:21 +00:00
|
|
|
IDX_SVC,
|
|
|
|
IDX_CHAR_A,
|
|
|
|
IDX_CHAR_VAL_A,
|
|
|
|
IDX_CHAR_CFG_A,
|
2016-12-23 16:28:47 +00:00
|
|
|
|
2017-11-01 08:46:21 +00:00
|
|
|
IDX_CHAR_B,
|
|
|
|
IDX_CHAR_VAL_B,
|
2016-12-23 16:28:47 +00:00
|
|
|
|
2017-11-01 08:46:21 +00:00
|
|
|
IDX_CHAR_C,
|
|
|
|
IDX_CHAR_VAL_C,
|
2016-12-23 16:28:47 +00:00
|
|
|
|
|
|
|
HRS_IDX_NB,
|
|
|
|
};
|