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.