package gammu

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type battery_charge = {
  1. battery_type : battery_type;
  2. battery_capacity : int;
  3. battery_percent : int;
  4. charge_state : charge_state;
  5. battery_voltage : int;
  6. charge_voltage : int;
  7. charge_current : int;
  8. phone_current : int;
  9. battery_temperature : int;
  10. phone_temperature : int;
}
and charge_state =
  1. | BatteryPowered
  2. | BatteryConnected
  3. | BatteryCharging
  4. | BatteryNotConnected
  5. | BatteryFull
  6. | PowerFault
and battery_type =
  1. | Unknown_battery
  2. | NiMH
  3. | LiIon
  4. | LiPol
type firmware = {
  1. version : string;
  2. ver_date : string;
  3. ver_num : float;
}
type phone_model = {
  1. model : string;
  2. number : string;
  3. irda : string;
}
type network = {
  1. cid : string;
  2. code : string;
  3. state : network_state;
  4. lac : string;
  5. name : string;
  6. gprs : gprs_state;
  7. packet_cid : string;
  8. packet_state : network_state;
  9. packet_lac : string;
}
and gprs_state =
  1. | Detached
  2. | Attached
  3. | Unknown_gprs
and network_state =
  1. | HomeNetwork
  2. | NoNetwork
  3. | RoamingNetwork
  4. | RegistrationDenied
  5. | Unknown_network
  6. | RequestingNetwork
type signal_quality = {
  1. signal_strength : int;
  2. signal_percent : int;
  3. bit_error_rate : int;
}
val network_code_name : string -> string
val country_code_name : string -> string
val battery_charge : t -> battery_charge
val firmware : t -> firmware
val hardware : t -> string
val imei : t -> string
val manufacture_month : t -> string
val manufacturer : t -> string
val model : t -> string
val model_info : t -> phone_model
val network_info : t -> network
val product_code : t -> string
val signal_quality : t -> signal_quality
OCaml

Innovation. Community. Security.