embassy-nrf

Crates

git

Versions

nrf52832

Flavors

embassy_nrf::radio

Enum TxPower

#[repr(u8)]
pub enum TxPower {
Show 256 variants _0_DBM = 0, _RESERVED_1 = 1, _RESERVED_2 = 2, POS3_DBM = 3, POS4_DBM = 4, _RESERVED_5 = 5, _RESERVED_6 = 6, _RESERVED_7 = 7, _RESERVED_8 = 8, _RESERVED_9 = 9, _RESERVED_a = 10, _RESERVED_b = 11, _RESERVED_c = 12, _RESERVED_d = 13, _RESERVED_e = 14, _RESERVED_f = 15, _RESERVED_10 = 16, _RESERVED_11 = 17, _RESERVED_12 = 18, _RESERVED_13 = 19, _RESERVED_14 = 20, _RESERVED_15 = 21, _RESERVED_16 = 22, _RESERVED_17 = 23, _RESERVED_18 = 24, _RESERVED_19 = 25, _RESERVED_1a = 26, _RESERVED_1b = 27, _RESERVED_1c = 28, _RESERVED_1d = 29, _RESERVED_1e = 30, _RESERVED_1f = 31, _RESERVED_20 = 32, _RESERVED_21 = 33, _RESERVED_22 = 34, _RESERVED_23 = 35, _RESERVED_24 = 36, _RESERVED_25 = 37, _RESERVED_26 = 38, _RESERVED_27 = 39, _RESERVED_28 = 40, _RESERVED_29 = 41, _RESERVED_2a = 42, _RESERVED_2b = 43, _RESERVED_2c = 44, _RESERVED_2d = 45, _RESERVED_2e = 46, _RESERVED_2f = 47, _RESERVED_30 = 48, _RESERVED_31 = 49, _RESERVED_32 = 50, _RESERVED_33 = 51, _RESERVED_34 = 52, _RESERVED_35 = 53, _RESERVED_36 = 54, _RESERVED_37 = 55, _RESERVED_38 = 56, _RESERVED_39 = 57, _RESERVED_3a = 58, _RESERVED_3b = 59, _RESERVED_3c = 60, _RESERVED_3d = 61, _RESERVED_3e = 62, _RESERVED_3f = 63, _RESERVED_40 = 64, _RESERVED_41 = 65, _RESERVED_42 = 66, _RESERVED_43 = 67, _RESERVED_44 = 68, _RESERVED_45 = 69, _RESERVED_46 = 70, _RESERVED_47 = 71, _RESERVED_48 = 72, _RESERVED_49 = 73, _RESERVED_4a = 74, _RESERVED_4b = 75, _RESERVED_4c = 76, _RESERVED_4d = 77, _RESERVED_4e = 78, _RESERVED_4f = 79, _RESERVED_50 = 80, _RESERVED_51 = 81, _RESERVED_52 = 82, _RESERVED_53 = 83, _RESERVED_54 = 84, _RESERVED_55 = 85, _RESERVED_56 = 86, _RESERVED_57 = 87, _RESERVED_58 = 88, _RESERVED_59 = 89, _RESERVED_5a = 90, _RESERVED_5b = 91, _RESERVED_5c = 92, _RESERVED_5d = 93, _RESERVED_5e = 94, _RESERVED_5f = 95, _RESERVED_60 = 96, _RESERVED_61 = 97, _RESERVED_62 = 98, _RESERVED_63 = 99, _RESERVED_64 = 100, _RESERVED_65 = 101, _RESERVED_66 = 102, _RESERVED_67 = 103, _RESERVED_68 = 104, _RESERVED_69 = 105, _RESERVED_6a = 106, _RESERVED_6b = 107, _RESERVED_6c = 108, _RESERVED_6d = 109, _RESERVED_6e = 110, _RESERVED_6f = 111, _RESERVED_70 = 112, _RESERVED_71 = 113, _RESERVED_72 = 114, _RESERVED_73 = 115, _RESERVED_74 = 116, _RESERVED_75 = 117, _RESERVED_76 = 118, _RESERVED_77 = 119, _RESERVED_78 = 120, _RESERVED_79 = 121, _RESERVED_7a = 122, _RESERVED_7b = 123, _RESERVED_7c = 124, _RESERVED_7d = 125, _RESERVED_7e = 126, _RESERVED_7f = 127, _RESERVED_80 = 128, _RESERVED_81 = 129, _RESERVED_82 = 130, _RESERVED_83 = 131, _RESERVED_84 = 132, _RESERVED_85 = 133, _RESERVED_86 = 134, _RESERVED_87 = 135, _RESERVED_88 = 136, _RESERVED_89 = 137, _RESERVED_8a = 138, _RESERVED_8b = 139, _RESERVED_8c = 140, _RESERVED_8d = 141, _RESERVED_8e = 142, _RESERVED_8f = 143, _RESERVED_90 = 144, _RESERVED_91 = 145, _RESERVED_92 = 146, _RESERVED_93 = 147, _RESERVED_94 = 148, _RESERVED_95 = 149, _RESERVED_96 = 150, _RESERVED_97 = 151, _RESERVED_98 = 152, _RESERVED_99 = 153, _RESERVED_9a = 154, _RESERVED_9b = 155, _RESERVED_9c = 156, _RESERVED_9d = 157, _RESERVED_9e = 158, _RESERVED_9f = 159, _RESERVED_a0 = 160, _RESERVED_a1 = 161, _RESERVED_a2 = 162, _RESERVED_a3 = 163, _RESERVED_a4 = 164, _RESERVED_a5 = 165, _RESERVED_a6 = 166, _RESERVED_a7 = 167, _RESERVED_a8 = 168, _RESERVED_a9 = 169, _RESERVED_aa = 170, _RESERVED_ab = 171, _RESERVED_ac = 172, _RESERVED_ad = 173, _RESERVED_ae = 174, _RESERVED_af = 175, _RESERVED_b0 = 176, _RESERVED_b1 = 177, _RESERVED_b2 = 178, _RESERVED_b3 = 179, _RESERVED_b4 = 180, _RESERVED_b5 = 181, _RESERVED_b6 = 182, _RESERVED_b7 = 183, _RESERVED_b8 = 184, _RESERVED_b9 = 185, _RESERVED_ba = 186, _RESERVED_bb = 187, _RESERVED_bc = 188, _RESERVED_bd = 189, _RESERVED_be = 190, _RESERVED_bf = 191, _RESERVED_c0 = 192, _RESERVED_c1 = 193, _RESERVED_c2 = 194, _RESERVED_c3 = 195, _RESERVED_c4 = 196, _RESERVED_c5 = 197, _RESERVED_c6 = 198, _RESERVED_c7 = 199, _RESERVED_c8 = 200, _RESERVED_c9 = 201, _RESERVED_ca = 202, _RESERVED_cb = 203, _RESERVED_cc = 204, _RESERVED_cd = 205, _RESERVED_ce = 206, _RESERVED_cf = 207, _RESERVED_d0 = 208, _RESERVED_d1 = 209, _RESERVED_d2 = 210, _RESERVED_d3 = 211, _RESERVED_d4 = 212, _RESERVED_d5 = 213, _RESERVED_d6 = 214, _RESERVED_d7 = 215, NEG40_DBM = 216, _RESERVED_d9 = 217, _RESERVED_da = 218, _RESERVED_db = 219, _RESERVED_dc = 220, _RESERVED_dd = 221, _RESERVED_de = 222, _RESERVED_df = 223, _RESERVED_e0 = 224, _RESERVED_e1 = 225, _RESERVED_e2 = 226, _RESERVED_e3 = 227, _RESERVED_e4 = 228, _RESERVED_e5 = 229, _RESERVED_e6 = 230, _RESERVED_e7 = 231, _RESERVED_e8 = 232, _RESERVED_e9 = 233, _RESERVED_ea = 234, _RESERVED_eb = 235, NEG20_DBM = 236, _RESERVED_ed = 237, _RESERVED_ee = 238, _RESERVED_ef = 239, NEG16_DBM = 240, _RESERVED_f1 = 241, _RESERVED_f2 = 242, _RESERVED_f3 = 243, NEG12_DBM = 244, _RESERVED_f5 = 245, _RESERVED_f6 = 246, _RESERVED_f7 = 247, NEG8_DBM = 248, _RESERVED_f9 = 249, _RESERVED_fa = 250, _RESERVED_fb = 251, NEG4_DBM = 252, _RESERVED_fd = 253, _RESERVED_fe = 254, _RESERVED_ff = 255,
}

Variants§

§

_0_DBM = 0

0 dBm

§

_RESERVED_1 = 1

§

_RESERVED_2 = 2

§

POS3_DBM = 3

+3 dBm

§

POS4_DBM = 4

+4 dBm

§

_RESERVED_5 = 5

§

_RESERVED_6 = 6

§

_RESERVED_7 = 7

§

_RESERVED_8 = 8

§

_RESERVED_9 = 9

§

_RESERVED_a = 10

§

_RESERVED_b = 11

§

_RESERVED_c = 12

§

_RESERVED_d = 13

§

_RESERVED_e = 14

§

_RESERVED_f = 15

§

_RESERVED_10 = 16

§

_RESERVED_11 = 17

§

_RESERVED_12 = 18

§

_RESERVED_13 = 19

§

_RESERVED_14 = 20

§

_RESERVED_15 = 21

§

_RESERVED_16 = 22

§

_RESERVED_17 = 23

§

_RESERVED_18 = 24

§

_RESERVED_19 = 25

§

_RESERVED_1a = 26

§

_RESERVED_1b = 27

§

_RESERVED_1c = 28

§

_RESERVED_1d = 29

§

_RESERVED_1e = 30

§

_RESERVED_1f = 31

§

_RESERVED_20 = 32

§

_RESERVED_21 = 33

§

_RESERVED_22 = 34

§

_RESERVED_23 = 35

§

_RESERVED_24 = 36

§

_RESERVED_25 = 37

§

_RESERVED_26 = 38

§

_RESERVED_27 = 39

§

_RESERVED_28 = 40

§

_RESERVED_29 = 41

§

_RESERVED_2a = 42

§

_RESERVED_2b = 43

§

_RESERVED_2c = 44

§

_RESERVED_2d = 45

§

_RESERVED_2e = 46

§

_RESERVED_2f = 47

§

_RESERVED_30 = 48

§

_RESERVED_31 = 49

§

_RESERVED_32 = 50

§

_RESERVED_33 = 51

§

_RESERVED_34 = 52

§

_RESERVED_35 = 53

§

_RESERVED_36 = 54

§

_RESERVED_37 = 55

§

_RESERVED_38 = 56

§

_RESERVED_39 = 57

§

_RESERVED_3a = 58

§

_RESERVED_3b = 59

§

_RESERVED_3c = 60

§

_RESERVED_3d = 61

§

_RESERVED_3e = 62

§

_RESERVED_3f = 63

§

_RESERVED_40 = 64

§

_RESERVED_41 = 65

§

_RESERVED_42 = 66

§

_RESERVED_43 = 67

§

_RESERVED_44 = 68

§

_RESERVED_45 = 69

§

_RESERVED_46 = 70

§

_RESERVED_47 = 71

§

_RESERVED_48 = 72

§

_RESERVED_49 = 73

§

_RESERVED_4a = 74

§

_RESERVED_4b = 75

§

_RESERVED_4c = 76

§

_RESERVED_4d = 77

§

_RESERVED_4e = 78

§

_RESERVED_4f = 79

§

_RESERVED_50 = 80

§

_RESERVED_51 = 81

§

_RESERVED_52 = 82

§

_RESERVED_53 = 83

§

_RESERVED_54 = 84

§

_RESERVED_55 = 85

§

_RESERVED_56 = 86

§

_RESERVED_57 = 87

§

_RESERVED_58 = 88

§

_RESERVED_59 = 89

§

_RESERVED_5a = 90

§

_RESERVED_5b = 91

§

_RESERVED_5c = 92

§

_RESERVED_5d = 93

§

_RESERVED_5e = 94

§

_RESERVED_5f = 95

§

_RESERVED_60 = 96

§

_RESERVED_61 = 97

§

_RESERVED_62 = 98

§

_RESERVED_63 = 99

§

_RESERVED_64 = 100

§

_RESERVED_65 = 101

§

_RESERVED_66 = 102

§

_RESERVED_67 = 103

§

_RESERVED_68 = 104

§

_RESERVED_69 = 105

§

_RESERVED_6a = 106

§

_RESERVED_6b = 107

§

_RESERVED_6c = 108

§

_RESERVED_6d = 109

§

_RESERVED_6e = 110

§

_RESERVED_6f = 111

§

_RESERVED_70 = 112

§

_RESERVED_71 = 113

§

_RESERVED_72 = 114

§

_RESERVED_73 = 115

§

_RESERVED_74 = 116

§

_RESERVED_75 = 117

§

_RESERVED_76 = 118

§

_RESERVED_77 = 119

§

_RESERVED_78 = 120

§

_RESERVED_79 = 121

§

_RESERVED_7a = 122

§

_RESERVED_7b = 123

§

_RESERVED_7c = 124

§

_RESERVED_7d = 125

§

_RESERVED_7e = 126

§

_RESERVED_7f = 127

§

_RESERVED_80 = 128

§

_RESERVED_81 = 129

§

_RESERVED_82 = 130

§

_RESERVED_83 = 131

§

_RESERVED_84 = 132

§

_RESERVED_85 = 133

§

_RESERVED_86 = 134

§

_RESERVED_87 = 135

§

_RESERVED_88 = 136

§

_RESERVED_89 = 137

§

_RESERVED_8a = 138

§

_RESERVED_8b = 139

§

_RESERVED_8c = 140

§

_RESERVED_8d = 141

§

_RESERVED_8e = 142

§

_RESERVED_8f = 143

§

_RESERVED_90 = 144

§

_RESERVED_91 = 145

§

_RESERVED_92 = 146

§

_RESERVED_93 = 147

§

_RESERVED_94 = 148

§

_RESERVED_95 = 149

§

_RESERVED_96 = 150

§

_RESERVED_97 = 151

§

_RESERVED_98 = 152

§

_RESERVED_99 = 153

§

_RESERVED_9a = 154

§

_RESERVED_9b = 155

§

_RESERVED_9c = 156

§

_RESERVED_9d = 157

§

_RESERVED_9e = 158

§

_RESERVED_9f = 159

§

_RESERVED_a0 = 160

§

_RESERVED_a1 = 161

§

_RESERVED_a2 = 162

§

_RESERVED_a3 = 163

§

_RESERVED_a4 = 164

§

_RESERVED_a5 = 165

§

_RESERVED_a6 = 166

§

_RESERVED_a7 = 167

§

_RESERVED_a8 = 168

§

_RESERVED_a9 = 169

§

_RESERVED_aa = 170

§

_RESERVED_ab = 171

§

_RESERVED_ac = 172

§

_RESERVED_ad = 173

§

_RESERVED_ae = 174

§

_RESERVED_af = 175

§

_RESERVED_b0 = 176

§

_RESERVED_b1 = 177

§

_RESERVED_b2 = 178

§

_RESERVED_b3 = 179

§

_RESERVED_b4 = 180

§

_RESERVED_b5 = 181

§

_RESERVED_b6 = 182

§

_RESERVED_b7 = 183

§

_RESERVED_b8 = 184

§

_RESERVED_b9 = 185

§

_RESERVED_ba = 186

§

_RESERVED_bb = 187

§

_RESERVED_bc = 188

§

_RESERVED_bd = 189

§

_RESERVED_be = 190

§

_RESERVED_bf = 191

§

_RESERVED_c0 = 192

§

_RESERVED_c1 = 193

§

_RESERVED_c2 = 194

§

_RESERVED_c3 = 195

§

_RESERVED_c4 = 196

§

_RESERVED_c5 = 197

§

_RESERVED_c6 = 198

§

_RESERVED_c7 = 199

§

_RESERVED_c8 = 200

§

_RESERVED_c9 = 201

§

_RESERVED_ca = 202

§

_RESERVED_cb = 203

§

_RESERVED_cc = 204

§

_RESERVED_cd = 205

§

_RESERVED_ce = 206

§

_RESERVED_cf = 207

§

_RESERVED_d0 = 208

§

_RESERVED_d1 = 209

§

_RESERVED_d2 = 210

§

_RESERVED_d3 = 211

§

_RESERVED_d4 = 212

§

_RESERVED_d5 = 213

§

_RESERVED_d6 = 214

§

_RESERVED_d7 = 215

§

NEG40_DBM = 216

-40 dBm

§

_RESERVED_d9 = 217

§

_RESERVED_da = 218

§

_RESERVED_db = 219

§

_RESERVED_dc = 220

§

_RESERVED_dd = 221

§

_RESERVED_de = 222

§

_RESERVED_df = 223

§

_RESERVED_e0 = 224

§

_RESERVED_e1 = 225

§

_RESERVED_e2 = 226

§

_RESERVED_e3 = 227

§

_RESERVED_e4 = 228

§

_RESERVED_e5 = 229

§

_RESERVED_e6 = 230

§

_RESERVED_e7 = 231

§

_RESERVED_e8 = 232

§

_RESERVED_e9 = 233

§

_RESERVED_ea = 234

§

_RESERVED_eb = 235

§

NEG20_DBM = 236

-20 dBm

§

_RESERVED_ed = 237

§

_RESERVED_ee = 238

§

_RESERVED_ef = 239

§

NEG16_DBM = 240

-16 dBm

§

_RESERVED_f1 = 241

§

_RESERVED_f2 = 242

§

_RESERVED_f3 = 243

§

NEG12_DBM = 244

-12 dBm

§

_RESERVED_f5 = 245

§

_RESERVED_f6 = 246

§

_RESERVED_f7 = 247

§

NEG8_DBM = 248

-8 dBm

§

_RESERVED_f9 = 249

§

_RESERVED_fa = 250

§

_RESERVED_fb = 251

§

NEG4_DBM = 252

-4 dBm

§

_RESERVED_fd = 253

§

_RESERVED_fe = 254

§

_RESERVED_ff = 255

Implementations§

§

impl Txpower

pub const fn from_bits(val: u8) -> Txpower

pub const fn to_bits(self) -> u8

Trait Implementations§

§

impl Clone for Txpower

§

fn clone(&self) -> Txpower

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl From<u8> for Txpower

§

fn from(val: u8) -> Txpower

Converts to this type from the input type.
§

impl Ord for Txpower

§

fn cmp(&self, other: &Txpower) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Txpower

§

fn eq(&self, other: &Txpower) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Txpower

§

fn partial_cmp(&self, other: &Txpower) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Copy for Txpower

§

impl Eq for Txpower

§

impl StructuralPartialEq for Txpower

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.