added to_number() conversion of rrc_nr poll_byte

master
Francisco 4 years ago committed by Andre Puschmann
parent a09fb95c25
commit c336c3eed2

@ -20011,8 +20011,10 @@ struct poll_byte_opts {
spare1, spare1,
nulltype nulltype
} value; } value;
typedef int32_t number_type;
std::string to_string() const; std::string to_string() const;
int32_t to_number() const;
}; };
typedef enumerated<poll_byte_opts> poll_byte_e; typedef enumerated<poll_byte_opts> poll_byte_e;

@ -43495,6 +43495,14 @@ std::string poll_byte_opts::to_string() const
"spare4", "spare3", "spare2", "spare1"}; "spare4", "spare3", "spare2", "spare1"};
return convert_enum_idx(options, 64, value, "poll_byte_e"); return convert_enum_idx(options, 64, value, "poll_byte_e");
} }
int32_t poll_byte_opts::to_number() const
{
static const int32_t options[] = {1, 2, 5, 8, 10, 15, 25, 50, 75, 100, 125,
250, 375, 500, 750, 1000, 1250, 1500, 2000, 3000, 4000, 4500,
5000, 5500, 6000, 6500, 7000, 7500, 8000, 9000, 10000, 11000, 12000,
13000, 14000, 15000, 16000, 17000, 18000, 20000, 25000, 30000, 40000, -1};
return map_enum_number(options, 44, value, "poll_byte_e");
}
// PollPDU ::= ENUMERATED // PollPDU ::= ENUMERATED
std::string poll_pdu_opts::to_string() const std::string poll_pdu_opts::to_string() const

Loading…
Cancel
Save