skl-tunnel/radio/include/radio_interrupts.hpp
2022-07-15 14:23:19 +03:00

31 lines
512 B
C++

//
// Created by erki on 15.07.22.
//
#ifndef SKL_TUNNEL_RADIO_INTERRUPTS_HPP
#define SKL_TUNNEL_RADIO_INTERRUPTS_HPP
#include <cstdint>
#include <utility_enum_helpers.hpp>
namespace radio
{
enum class Interrupts : std::uint8_t
{
PLL_LOCK = (1 << 0),
PLL_UNLOCK = (1 << 1),
RX_START = (1 << 2),
TRX_END = (1 << 3),
CCA_ED_DONE = (1 << 4),
AMI = (1 << 5),
TRX_UR = (1 << 6),
BAT_LOW = (1 << 7)
};
SKULLC_ENUM_DECLARE_BITFLAG_OPERATORS(Interrupts)
}
#endif //SKL_TUNNEL_RADIO_INTERRUPTS_HPP