Embedded System Design 2 - Project
datatypes.h File Reference

Definitions of the custom data-types used. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MeasurementData_t
 

Typedefs

typedef enum mcu_states MCU_State_t
 

Enumerations

enum  mcu_states {
  INIT, MEASURE, SEND, SEND_STORM,
  SLEEP, SLEEP_HALFTIME, WAKEUP
}
 

Detailed Description

Definitions of the custom data-types used.

Version
2.0
Author
Brecht Van Eeckhoudt

Versions

  • v1.0: Moved mcu_states enum definition from main.c to this file and added MeasurementData_t struct data type.
  • v1.1: Added another MCU_State_t option.
  • v1.2: Added another MCU_State_t option.
  • v1.3: Changed data types in MeasurementData_t struct.
  • v2.0: Updated version number.

License

Copyright (C) 2019 - Brecht Van Eeckhoudt

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

A copy of the GNU General Public License can be found in the LICENSE file along with this source code.


Some methods use code obtained from examples from Silicon Labs' GitHub. These sections are licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file datatypes.h.

Typedef Documentation

◆ MCU_State_t

typedef enum mcu_states MCU_State_t

Enum type for the state machine

Enumeration Type Documentation

◆ mcu_states

enum mcu_states

Enum type for the state machine

Enumerator
INIT 
MEASURE 
SEND 
SEND_STORM 
SLEEP 
SLEEP_HALFTIME 
WAKEUP 

Definition at line 56 of file datatypes.h.

57 {
58  INIT,
59  MEASURE,
60  SEND,
61  SEND_STORM,
62  SLEEP,
64  WAKEUP
65 } MCU_State_t;
Definition: datatypes.h:60
enum mcu_states MCU_State_t
Definition: datatypes.h:58