Skip to main content

Module mavlink_enums

Module mavlink_enums 

Source
Expand description

The C ABI for the MAVLink dialect’s named values.

An enum field rides on the wire as a plain integer, so a caller that sets type on a heartbeat or reads result off an acknowledgment works in numbers. These calls turn the names the dialect writes, such as MAV_TYPE_QUADROTOR, into those numbers and back, for every enumeration a field of a typed message names, so a caller never copies a value out of the dialect by hand.

Functions§

pamoja_mavlink_enum_at⚠
Returns the name of the enumeration at an index of the dialect table.
pamoja_mavlink_enum_count
Returns how many enumerations the dialect table holds.
pamoja_mavlink_enum_entry⚠
Names the entry of an enumeration that stands for a value.
pamoja_mavlink_enum_entry_at⚠
Returns an enumeration’s entry at an index, in dialect order.
pamoja_mavlink_enum_is_bitmask⚠
Reports whether an enumeration’s values combine as bits.
pamoja_mavlink_enum_len⚠
Returns how many entries an enumeration names.
pamoja_mavlink_enum_names⚠
Names the entries a value is made of: for a bitmask, each entry whose bits are set in it; otherwise the one entry that names it.
pamoja_mavlink_enum_value⚠
Looks up the value a dialect entry name stands for, whichever enumeration it belongs to.