use esp_idf_svc::sys as esp_idf_sys;
use num_enum::IntoPrimitive;
#[derive(Copy, Clone, PartialEq, Eq, Debug, IntoPrimitive)]
#[repr(u8)]
pub enum ChrFormat {
Boolean = esp_idf_sys::BLE_GATT_CHR_FORMAT_BOOLEAN as _,
Uint2 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT2 as _,
Uint4 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT4 as _,
Uint8 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT8 as _,
Uint12 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT12 as _,
Uint16 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT16 as _,
Uint24 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT24 as _,
Uint32 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT32 as _,
Uint48 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT48 as _,
Uint64 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT64 as _,
Uint128 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT128 as _,
Sint8 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT8 as _,
Sint12 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT12 as _,
Sint16 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT16 as _,
Sint24 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT24 as _,
Sint32 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT32 as _,
Sint48 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT48 as _,
Sint64 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT64 as _,
Sint128 = esp_idf_sys::BLE_GATT_CHR_FORMAT_SINT128 as _,
Float32 = esp_idf_sys::BLE_GATT_CHR_FORMAT_FLOAT32 as _,
Float64 = esp_idf_sys::BLE_GATT_CHR_FORMAT_FLOAT64 as _,
Medfloat16 = esp_idf_sys::BLE_GATT_CHR_FORMAT_MEDFLOAT16 as _,
Medfloat32 = esp_idf_sys::BLE_GATT_CHR_FORMAT_MEDFLOAT32 as _,
Uint162 = esp_idf_sys::BLE_GATT_CHR_FORMAT_UINT16_2 as _,
Utf8s = esp_idf_sys::BLE_GATT_CHR_FORMAT_UTF8S as _,
Utf16s = esp_idf_sys::BLE_GATT_CHR_FORMAT_UTF16S as _,
Struct = esp_idf_sys::BLE_GATT_CHR_FORMAT_STRUCT as _,
Medasn1 = esp_idf_sys::BLE_GATT_CHR_FORMAT_MEDASN1 as _,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, IntoPrimitive)]
#[repr(u16)]
pub enum ChrUnit {
Unitless = esp_idf_sys::BLE_GATT_CHR_UNIT_UNITLESS as _,
Metre = esp_idf_sys::BLE_GATT_CHR_UNIT_METRE as _,
Kilogram = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOGRAM as _,
Second = esp_idf_sys::BLE_GATT_CHR_UNIT_SECOND as _,
Ampere = esp_idf_sys::BLE_GATT_CHR_UNIT_AMPERE as _,
Kelvin = esp_idf_sys::BLE_GATT_CHR_UNIT_KELVIN as _,
Mole = esp_idf_sys::BLE_GATT_CHR_UNIT_MOLE as _,
Candela = esp_idf_sys::BLE_GATT_CHR_UNIT_CANDELA as _,
SquareMetres = esp_idf_sys::BLE_GATT_CHR_UNIT_SQUARE_METRES as _,
CubicMetres = esp_idf_sys::BLE_GATT_CHR_UNIT_CUBIC_METRES as _,
MetresPerSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_METRES_PER_SECOND as _,
MetresPerSecondSquared = esp_idf_sys::BLE_GATT_CHR_UNIT_METRES_PER_SECOND_SQUARED as _,
ReciprocalMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_RECIPROCAL_METRE as _,
KilogramPerCubicMetreDensity =
esp_idf_sys::BLE_GATT_CHR_UNIT_KILOGRAM_PER_CUBIC_METRE_DENSITY as _,
KilogramPerSquareMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOGRAM_PER_SQUARE_METRE as _,
CubicMetrePerKilogram = esp_idf_sys::BLE_GATT_CHR_UNIT_CUBIC_METRE_PER_KILOGRAM as _,
AmperePerSquareMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_AMPERE_PER_SQUARE_METRE as _,
AmperePerMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_AMPERE_PER_METRE as _,
MolePerCubicMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_MOLE_PER_CUBIC_METRE as _,
KilogramPerCubicMetreMassConc =
esp_idf_sys::BLE_GATT_CHR_UNIT_KILOGRAM_PER_CUBIC_METRE_MASS_CONC as _,
CandelaPerSquareMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_CANDELA_PER_SQUARE_METRE as _,
RefractiveIndex = esp_idf_sys::BLE_GATT_CHR_UNIT_REFRACTIVE_INDEX as _,
RelativePermeability = esp_idf_sys::BLE_GATT_CHR_UNIT_RELATIVE_PERMEABILITY as _,
Radian = esp_idf_sys::BLE_GATT_CHR_UNIT_RADIAN as _,
Steradian = esp_idf_sys::BLE_GATT_CHR_UNIT_STERADIAN as _,
Hertz = esp_idf_sys::BLE_GATT_CHR_UNIT_HERTZ as _,
Newton = esp_idf_sys::BLE_GATT_CHR_UNIT_NEWTON as _,
Pascal = esp_idf_sys::BLE_GATT_CHR_UNIT_PASCAL as _,
Joule = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE as _,
Watt = esp_idf_sys::BLE_GATT_CHR_UNIT_WATT as _,
Coulomb = esp_idf_sys::BLE_GATT_CHR_UNIT_COULOMB as _,
Volt = esp_idf_sys::BLE_GATT_CHR_UNIT_VOLT as _,
Farad = esp_idf_sys::BLE_GATT_CHR_UNIT_FARAD as _,
Ohm = esp_idf_sys::BLE_GATT_CHR_UNIT_OHM as _,
Siemens = esp_idf_sys::BLE_GATT_CHR_UNIT_SIEMENS as _,
Weber = esp_idf_sys::BLE_GATT_CHR_UNIT_WEBER as _,
Tesla = esp_idf_sys::BLE_GATT_CHR_UNIT_TESLA as _,
Henry = esp_idf_sys::BLE_GATT_CHR_UNIT_HENRY as _,
DegreeCelsius = esp_idf_sys::BLE_GATT_CHR_UNIT_DEGREE_CELSIUS as _,
Lumen = esp_idf_sys::BLE_GATT_CHR_UNIT_LUMEN as _,
Lux = esp_idf_sys::BLE_GATT_CHR_UNIT_LUX as _,
Becquerel = esp_idf_sys::BLE_GATT_CHR_UNIT_BECQUEREL as _,
Gray = esp_idf_sys::BLE_GATT_CHR_UNIT_GRAY as _,
Sievert = esp_idf_sys::BLE_GATT_CHR_UNIT_SIEVERT as _,
Katal = esp_idf_sys::BLE_GATT_CHR_UNIT_KATAL as _,
PascalSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_PASCAL_SECOND as _,
NewtonMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_NEWTON_METRE as _,
NewtonPerMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_NEWTON_PER_METRE as _,
RadianPerSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_RADIAN_PER_SECOND as _,
RadianPerSecondSquared = esp_idf_sys::BLE_GATT_CHR_UNIT_RADIAN_PER_SECOND_SQUARED as _,
WattPerSquareMetreHeat = esp_idf_sys::BLE_GATT_CHR_UNIT_WATT_PER_SQUARE_METRE_HEAT as _,
JoulePerKelvin = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_KELVIN as _,
JoulePerKilogramKelvin = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_KILOGRAM_KELVIN as _,
JoulePerKilogram = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_KILOGRAM as _,
WattPerMetreKelvin = esp_idf_sys::BLE_GATT_CHR_UNIT_WATT_PER_METRE_KELVIN as _,
JoulePerCubicMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_CUBIC_METRE as _,
VoltPerMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_VOLT_PER_METRE as _,
CoulombPerCubicMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_COULOMB_PER_CUBIC_METRE as _,
CoulombPerSquareMetreCharge = esp_idf_sys::BLE_GATT_CHR_UNIT_COULOMB_PER_SQUARE_METRE_CHARGE as _,
CoulombPerSquareMetreFlux = esp_idf_sys::BLE_GATT_CHR_UNIT_COULOMB_PER_SQUARE_METRE_FLUX as _,
FaradPerMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_FARAD_PER_METRE as _,
HenryPerMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_HENRY_PER_METRE as _,
JoulePerMole = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_MOLE as _,
JoulePerMoleKelvin = esp_idf_sys::BLE_GATT_CHR_UNIT_JOULE_PER_MOLE_KELVIN as _,
CoulombPerKilogram = esp_idf_sys::BLE_GATT_CHR_UNIT_COULOMB_PER_KILOGRAM as _,
GrayPerSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_GRAY_PER_SECOND as _,
WattPerSteradian = esp_idf_sys::BLE_GATT_CHR_UNIT_WATT_PER_STERADIAN as _,
WattPerSquareMetreSteradian = esp_idf_sys::BLE_GATT_CHR_UNIT_WATT_PER_SQUARE_METRE_STERADIAN as _,
KatalPerCubicMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_KATAL_PER_CUBIC_METRE as _,
Minute = esp_idf_sys::BLE_GATT_CHR_UNIT_MINUTE as _,
Hour = esp_idf_sys::BLE_GATT_CHR_UNIT_HOUR as _,
Day = esp_idf_sys::BLE_GATT_CHR_UNIT_DAY as _,
Degree = esp_idf_sys::BLE_GATT_CHR_UNIT_DEGREE as _,
MinuteAngle = esp_idf_sys::BLE_GATT_CHR_UNIT_MINUTE_ANGLE as _,
SecondAngle = esp_idf_sys::BLE_GATT_CHR_UNIT_SECOND_ANGLE as _,
Hectare = esp_idf_sys::BLE_GATT_CHR_UNIT_HECTARE as _,
Litre = esp_idf_sys::BLE_GATT_CHR_UNIT_LITRE as _,
Tonne = esp_idf_sys::BLE_GATT_CHR_UNIT_TONNE as _,
Bar = esp_idf_sys::BLE_GATT_CHR_UNIT_BAR as _,
MillimetreOfMercury = esp_idf_sys::BLE_GATT_CHR_UNIT_MILLIMETRE_OF_MERCURY as _,
Angstrom = esp_idf_sys::BLE_GATT_CHR_UNIT_ANGSTROM as _,
NauticalMile = esp_idf_sys::BLE_GATT_CHR_UNIT_NAUTICAL_MILE as _,
Barn = esp_idf_sys::BLE_GATT_CHR_UNIT_BARN as _,
Knot = esp_idf_sys::BLE_GATT_CHR_UNIT_KNOT as _,
Neper = esp_idf_sys::BLE_GATT_CHR_UNIT_NEPER as _,
Bel = esp_idf_sys::BLE_GATT_CHR_UNIT_BEL as _,
Yard = esp_idf_sys::BLE_GATT_CHR_UNIT_YARD as _,
Parsec = esp_idf_sys::BLE_GATT_CHR_UNIT_PARSEC as _,
Inch = esp_idf_sys::BLE_GATT_CHR_UNIT_INCH as _,
Foot = esp_idf_sys::BLE_GATT_CHR_UNIT_FOOT as _,
Mile = esp_idf_sys::BLE_GATT_CHR_UNIT_MILE as _,
PoundForcePerSquareInch = esp_idf_sys::BLE_GATT_CHR_UNIT_POUND_FORCE_PER_SQUARE_INCH as _,
KilometrePerHour = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOMETRE_PER_HOUR as _,
MilePerHour = esp_idf_sys::BLE_GATT_CHR_UNIT_MILE_PER_HOUR as _,
RevolutionPerMinute = esp_idf_sys::BLE_GATT_CHR_UNIT_REVOLUTION_PER_MINUTE as _,
GramCalorie = esp_idf_sys::BLE_GATT_CHR_UNIT_GRAM_CALORIE as _,
KilogramCalorie = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOGRAM_CALORIE as _,
KilowattHour = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOWATT_HOUR as _,
DegreeFahrenheit = esp_idf_sys::BLE_GATT_CHR_UNIT_DEGREE_FAHRENHEIT as _,
Percentage = esp_idf_sys::BLE_GATT_CHR_UNIT_PERCENTAGE as _,
PerMille = esp_idf_sys::BLE_GATT_CHR_UNIT_PER_MILLE as _,
BeatsPerMinute = esp_idf_sys::BLE_GATT_CHR_UNIT_BEATS_PER_MINUTE as _,
AmpereHours = esp_idf_sys::BLE_GATT_CHR_UNIT_AMPERE_HOURS as _,
MilligramPerDecilitre = esp_idf_sys::BLE_GATT_CHR_UNIT_MILLIGRAM_PER_DECILITRE as _,
MillimolePerLitre = esp_idf_sys::BLE_GATT_CHR_UNIT_MILLIMOLE_PER_LITRE as _,
Year = esp_idf_sys::BLE_GATT_CHR_UNIT_YEAR as _,
Month = esp_idf_sys::BLE_GATT_CHR_UNIT_MONTH as _,
CountPerCubicMetre = esp_idf_sys::BLE_GATT_CHR_UNIT_COUNT_PER_CUBIC_METRE as _,
WattPerSquareMetreIrradiance =
esp_idf_sys::BLE_GATT_CHR_UNIT_WATT_PER_SQUARE_METRE_IRRADIANCE as _,
PerKilogramPerMinute = esp_idf_sys::BLE_GATT_CHR_UNIT_PER_KILOGRAM_PER_MINUTE as _,
Pound = esp_idf_sys::BLE_GATT_CHR_UNIT_POUND as _,
MetabolicEquivalent = esp_idf_sys::BLE_GATT_CHR_UNIT_METABOLIC_EQUIVALENT as _,
PerMinuteStep = esp_idf_sys::BLE_GATT_CHR_UNIT_PER_MINUTE_STEP as _,
PerMinuteStroke = esp_idf_sys::BLE_GATT_CHR_UNIT_PER_MINUTE_STROKE as _,
KilometrePerMinute = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOMETRE_PER_MINUTE as _,
LumenPerWatt = esp_idf_sys::BLE_GATT_CHR_UNIT_LUMEN_PER_WATT as _,
LumenHour = esp_idf_sys::BLE_GATT_CHR_UNIT_LUMEN_HOUR as _,
LuxHour = esp_idf_sys::BLE_GATT_CHR_UNIT_LUX_HOUR as _,
GramPerSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_GRAM_PER_SECOND as _,
LitrePerSecond = esp_idf_sys::BLE_GATT_CHR_UNIT_LITRE_PER_SECOND as _,
Decibel = esp_idf_sys::BLE_GATT_CHR_UNIT_DECIBEL as _,
PartsPerMillion = esp_idf_sys::BLE_GATT_CHR_UNIT_PARTS_PER_MILLION as _,
PartsPerBillion = esp_idf_sys::BLE_GATT_CHR_UNIT_PARTS_PER_BILLION as _,
MilligramPerDecilitrePerMinute =
esp_idf_sys::BLE_GATT_CHR_UNIT_MILLIGRAM_PER_DECILITRE_PER_MINUTE as _,
KilovoltAmpereHour = esp_idf_sys::BLE_GATT_CHR_UNIT_KILOVOLT_AMPERE_HOUR as _,
VoltAmpere = esp_idf_sys::BLE_GATT_CHR_UNIT_VOLT_AMPERE as _,
}
pub struct Cpfd {
pub format: ChrFormat,
pub exponent: i8,
pub unit: ChrUnit,
pub name_space: u8,
pub description: u16,
}