Pebble App Framework
v7.1.1
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
wind.h
Go to the documentation of this file.
1
7
#pragma once
8
13
21
typedef
enum
22
{
23
WIND_UNIT_KMH
= 0,
24
WIND_UNIT_MPH
= 1,
25
WIND_UNIT_KTS
= 2,
26
WIND_UNIT_MS
= 3,
27
WIND_UNIT_COUNT
28
}
WindUnit
;
29
41
int
wind_from_kmh
(
int
kmh,
WindUnit
unit);
42
49
const
char
*
wind_unit_label
(
WindUnit
unit);
50
wind_from_kmh
int wind_from_kmh(int kmh, WindUnit unit)
Convert a km/h wind speed into the chosen unit.
Definition
wind.c:25
WindUnit
WindUnit
Which unit a wind speed reads out in.
Definition
wind.h:22
wind_unit_label
const char * wind_unit_label(WindUnit unit)
The short label for a wind unit.
Definition
wind.c:36
WIND_UNIT_MPH
@ WIND_UNIT_MPH
miles per hour
Definition
wind.h:24
WIND_UNIT_KTS
@ WIND_UNIT_KTS
knots
Definition
wind.h:25
WIND_UNIT_COUNT
@ WIND_UNIT_COUNT
how many units there are, not a unit itself
Definition
wind.h:27
WIND_UNIT_KMH
@ WIND_UNIT_KMH
kilometres per hour
Definition
wind.h:23
WIND_UNIT_MS
@ WIND_UNIT_MS
metres per second
Definition
wind.h:26
src
c
core
units
wind.h
Generated by
1.18.0