1 #ifndef __SEATALK__MESSAGE_30__HPP__
2 #define __SEATALK__MESSAGE_30__HPP__
4 #include <marnav/seatalk/message.hpp>
11 /// @brief Set Lamp Intensity
22 /// only sent once when setting the lamp intensity
24 class message_30
: public message
27 constexpr static const message_id ID
= message_id::set_lamp_intensity
;
29 enum class intensity
: uint8_t { L0
= 0x00, L1
= 0x04, L2
= 0x08, L3
= 0x0c };
32 message_30(const message_30
&) = default;
33 message_30
& operator=(const message_30
&) = default;
35 virtual raw
get_data() const override
;
37 static std::unique_ptr
<message
> parse(const raw
& data
);
43 intensity
get_intensity() const noexcept
{ return value
; }
45 void set_intensity(intensity t
) noexcept
{ value
= t
; }