embassy-nrf

Crates

git

Versions

nrf5340-net

Flavors

embassy_nrf::radio

Enum TxPower

#[repr(u8)]
pub enum TxPower {
Show 256 variants _0_DBM = 0, _RESERVED_1 = 1, _RESERVED_2 = 2, _RESERVED_3 = 3, _RESERVED_4 = 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, NEG30_DBM = 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, NEG7_DBM = 249, NEG6_DBM = 250, NEG5_DBM = 251, NEG4_DBM = 252, NEG3_DBM = 253, NEG2_DBM = 254, NEG1_DBM = 255,
}

Variants§

§

_0_DBM = 0

0 dBm

§

_RESERVED_1 = 1

§

_RESERVED_2 = 2

§

_RESERVED_3 = 3

§

_RESERVED_4 = 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

-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

§

NEG30_DBM = 226

Deprecated enumerator - -40 dBm

§

_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

§

NEG7_DBM = 249

-7 dBm

§

NEG6_DBM = 250

-6 dBm

§

NEG5_DBM = 251

-5 dBm

§

NEG4_DBM = 252

-4 dBm

§

NEG3_DBM = 253

-3 dBm

§

NEG2_DBM = 254

-2 dBm

§

NEG1_DBM = 255

-1 dBm

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> 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<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<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.