// generated from rosidl_generator_c/resource/idl__struct.h.em
// with input from px4_msgs:msg/PowerButtonState.idl
// generated code does not contain a copyright notice

// IWYU pragma: private, include "px4_msgs/msg/power_button_state.h"


#ifndef PX4_MSGS__MSG__DETAIL__POWER_BUTTON_STATE__STRUCT_H_
#define PX4_MSGS__MSG__DETAIL__POWER_BUTTON_STATE__STRUCT_H_

#ifdef __cplusplus
extern "C"
{
#endif

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

// Constants defined in the message

/// Constant 'PWR_BUTTON_STATE_IDEL'.
/**
  * Button went up without meeting shutdown button down time (delete event)
 */
enum
{
  px4_msgs__msg__PowerButtonState__PWR_BUTTON_STATE_IDEL = 0
};

/// Constant 'PWR_BUTTON_STATE_DOWN'.
/**
  * Button went Down
 */
enum
{
  px4_msgs__msg__PowerButtonState__PWR_BUTTON_STATE_DOWN = 1
};

/// Constant 'PWR_BUTTON_STATE_UP'.
/**
  * Button went Up
 */
enum
{
  px4_msgs__msg__PowerButtonState__PWR_BUTTON_STATE_UP = 2
};

/// Constant 'PWR_BUTTON_STATE_REQUEST_SHUTDOWN'.
/**
  * Button went Up after meeting shutdown button down time
 */
enum
{
  px4_msgs__msg__PowerButtonState__PWR_BUTTON_STATE_REQUEST_SHUTDOWN = 3
};

/// Struct defined in msg/PowerButtonState in the package px4_msgs.
/**
  * power button state notification message
 */
typedef struct px4_msgs__msg__PowerButtonState
{
  /// time since system start (microseconds)
  uint64_t timestamp;
  /// one of PWR_BUTTON_STATE_*
  uint8_t event;
} px4_msgs__msg__PowerButtonState;

// Struct for a sequence of px4_msgs__msg__PowerButtonState.
typedef struct px4_msgs__msg__PowerButtonState__Sequence
{
  px4_msgs__msg__PowerButtonState * data;
  /// The number of valid items in data
  size_t size;
  /// The number of allocated items in data
  size_t capacity;
} px4_msgs__msg__PowerButtonState__Sequence;

#ifdef __cplusplus
}
#endif

#endif  // PX4_MSGS__MSG__DETAIL__POWER_BUTTON_STATE__STRUCT_H_
