package gammu

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error =
  1. | DEVICEOPENERROR
  2. | DEVICELOCKED
  3. | DEVICENOTEXIST
  4. | DEVICEBUSY
  5. | DEVICENOPERMISSION
  6. | DEVICENODRIVER
  7. | DEVICENOTWORK
  8. | DEVICEDTRRTSERROR
  9. | DEVICECHANGESPEEDERROR
  10. | DEVICEWRITEERROR
  11. | DEVICEREADERROR
  12. | DEVICEPARITYERROR
  13. | TIMEOUT
  14. | FRAMENOTREQUESTED
  15. | UNKNOWNRESPONSE
  16. | UNKNOWNFRAME
  17. | UNKNOWNCONNECTIONTYPESTRING
  18. | UNKNOWNMODELSTRING
  19. | SOURCENOTAVAILABLE
  20. | NOTSUPPORTED
  21. | EMPTY
  22. | SECURITYERROR
  23. | INVALIDLOCATION
  24. | NOTIMPLEMENTED
  25. | FULL
  26. | UNKNOWN
  27. | CANTOPENFILE
  28. | MOREMEMORY
  29. | PERMISSION
  30. | EMPTYSMSC
  31. | INSIDEPHONEMENU
  32. | NOTCONNECTED
  33. | WORKINPROGRESS
  34. | PHONEOFF
  35. | FILENOTSUPPORTED
  36. | BUG
  37. | CANCELED
  38. | NEEDANOTHERANSWER
  39. | OTHERCONNECTIONREQUIRED
  40. | WRONGCRC
  41. | INVALIDDATETIME
  42. | MEMORY
  43. | INVALIDDATA
  44. | FILEALREADYEXIST
  45. | FILENOTEXIST
  46. | SHOULDBEFOLDER
  47. | SHOULDBEFILE
  48. | NOSIM
  49. | GNAPPLETWRONG
  50. | FOLDERPART
  51. | FOLDERNOTEMPTY
  52. | DATACONVERTED
  53. | UNCONFIGURED
  54. | WRONGFOLDER
  55. | PHONE_INTERNAL
  56. | WRITING_FILE
  57. | NONE_SECTION
  58. | USING_DEFAULTS
  59. | CORRUPTED
  60. | BADFEATURE
  61. | DISABLED
  62. | SPECIFYCHANNEL
  63. | NOTRUNNING
  64. | NOSERVICE
  65. | BUSY
  66. | COULDNT_CONNECT
  67. | COULDNT_RESOLVE
  68. | GETTING_SMSC
  69. | INI_KEY_NOT_FOUND
  70. | COULD_NOT_DECODE
  71. | INVALID_CONFIG_NUM
val string_of_error : error -> string
exception Error of error
module Debug : sig ... end
type t
type config = {
  1. model : string;
  2. debug_level : string;
  3. device : string;
  4. connection : string;
  5. sync_time : bool;
  6. lock_device : bool;
  7. debug_file : string;
  8. start_info : bool;
  9. use_global_debug_file : bool;
  10. text_reminder : string;
  11. text_meeting : string;
  12. text_call : string;
  13. text_birthday : string;
  14. text_memo : string;
}
type connection_type =
  1. | BUS2
  2. | FBUS2
  3. | FBUS2DLR3
  4. | DKU2AT
  5. | DKU2PHONET
  6. | DKU5FBUS2
  7. | ARK3116FBUS2
  8. | FBUS2PL2303
  9. | FBUS2BLUE
  10. | FBUS2IRDA
  11. | PHONETBLUE
  12. | AT
  13. | BLUEGNAPBUS
  14. | IRDAOBEX
  15. | IRDAGNAPBUS
  16. | IRDAAT
  17. | IRDAPHONET
  18. | BLUEFBUS2
  19. | BLUEAT
  20. | BLUEPHONET
  21. | BLUEOBEX
  22. | FBUS2USB
  23. | NONE
val get_debug : t -> Debug.info
val init_locales : ?path:string -> unit -> unit
val make : ?section:int -> unit -> t
val get_config : ?num:int -> t -> config
val push_config : t -> config -> unit
val remove_config : t -> unit
val length_config : t -> int
val load_gammurc : ?path:string -> ?section:int -> t -> unit
val connect : ?log:(string -> unit) -> ?replies:int -> t -> unit
val disconnect : t -> unit
val is_connected : t -> bool
val get_used_connection : t -> connection_type
val read_device : ?wait_for_reply:bool -> t -> int
module INI : sig ... end
type security_code_type =
  1. | SEC_SecurityCode
  2. | SEC_Pin
  3. | SEC_Pin2
  4. | SEC_Puk
  5. | SEC_Puk2
  6. | SEC_None
  7. | SEC_Phone
  8. | SEC_Network
val enter_security_code : t -> code_type:security_code_type -> code:string -> unit
val get_security_status : t -> security_code_type
module Info : sig ... end
module DateTime : sig ... end
type memory_type =
  1. | ME
  2. | SM
  3. | ON
  4. | DC
  5. | RC
  6. | MC
  7. | MT
  8. | FD
  9. | VM
  10. | SL
  11. | QD
type binary_picture
type entry_type =
  1. | Number_General of string
  2. | Number_Mobile of string
  3. | Number_Work of string
  4. | Number_Fax of string
  5. | Number_Home of string
  6. | Number_Pager of string
  7. | Number_Other of string
  8. | Text_Note of string
  9. | Text_Postal of string
  10. | Text_Email of string
  11. | Text_Email2 of string
  12. | Text_URL of string
  13. | Date of DateTime.t
  14. | Caller_Group of int
  15. | Text_Name of string
  16. | Text_LastName of string
  17. | Text_FirstName of string
  18. | Text_Company of string
  19. | Text_JobTitle of string
  20. | Category of string option
  21. | Private of int
  22. | Text_StreetAddress of string
  23. | Text_City of string
  24. | Text_State of string
  25. | Text_Zip of string
  26. | Text_Country of string
  27. | Text_Custom1 of string
  28. | Text_Custom2 of string
  29. | Text_Custom3 of string
  30. | Text_Custom4 of string
  31. | RingtoneID of int
  32. | PictureID of int
  33. | Text_UserID of string
  34. | CallLength of int
  35. | Text_LUID of string
  36. | LastModified of DateTime.t
  37. | Text_NickName of string
  38. | Text_FormalName of string
  39. | Text_WorkStreetAddress of string
  40. | Text_WorkCity of string
  41. | Text_WorkState of string
  42. | Text_WorkZip of string
  43. | Text_WorkCountry of string
  44. | Text_WorkPostal of string
  45. | Text_PictureName of string
  46. | PushToTalkID of string
  47. | Number_Messaging of string
  48. | Photo of binary_picture
  49. | Number_Mobile_Home of string
  50. | Number_Mobile_Work of string
type sub_memory_entry = {
  1. entry_type : entry_type;
  2. voice_tag : int;
  3. sms_list : int array;
  4. call_length : int;
  5. add_error : error;
}
type memory_entry = {
  1. memory_type : memory_type;
  2. location : int;
  3. entries : sub_memory_entry array;
}
module SMS : sig ... end
module Call : sig ... end
val incoming_sms : ?enable:bool -> t -> (SMS.message -> unit) -> unit
val enable_incoming_sms : t -> bool -> unit
val incoming_call : ?enable:bool -> t -> (Call.call -> unit) -> unit
val enable_incoming_call : t -> bool -> unit
OCaml

Innovation. Community. Security.