You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
542 B

3 years ago
  1. /*
  2. This example code is in the Public Domain (or CC0 licensed, at your option.)
  3. Unless required by applicable law or agreed to in writing, this
  4. software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  5. CONDITIONS OF ANY KIND, either express or implied.
  6. */
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <string.h>
  10. /* Attributes State Machine */
  11. enum
  12. {
  13. IDX_SVC,
  14. IDX_CHAR_A,
  15. IDX_CHAR_VAL_A,
  16. IDX_CHAR_CFG_A,
  17. IDX_CHAR_B,
  18. IDX_CHAR_VAL_B,
  19. IDX_CHAR_C,
  20. IDX_CHAR_VAL_C,
  21. HRS_IDX_NB,
  22. };