2021-08-31 14:32:48 +02:00
|
|
|
/// Power amplifier over current protection.
|
|
|
|
///
|
|
|
|
/// Used by [`set_pa_ocp`].
|
|
|
|
///
|
2021-09-14 14:58:37 +02:00
|
|
|
/// [`set_pa_ocp`]: super::SubGhz::set_pa_ocp
|
2021-08-31 14:32:48 +02:00
|
|
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
#[repr(u8)]
|
|
|
|
pub enum Ocp {
|
|
|
|
/// Maximum 60mA current for LP PA mode.
|
|
|
|
Max60m = 0x18,
|
|
|
|
/// Maximum 140mA for HP PA mode.
|
|
|
|
Max140m = 0x38,
|
|
|
|
}
|