From 059bd363a8b2b9c228637bcaf22c77d2ea22ad71 Mon Sep 17 00:00:00 2001 From: tick Date: Tue, 20 Nov 2007 06:19:55 +0000 Subject: [gsmd] sorry forget to add the new file (Sean Chiang) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3450 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_modem.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/libgsmd/libgsmd_modem.c (limited to 'src') diff --git a/src/libgsmd/libgsmd_modem.c b/src/libgsmd/libgsmd_modem.c new file mode 100644 index 0000000..e01b350 --- /dev/null +++ b/src/libgsmd/libgsmd_modem.c @@ -0,0 +1,23 @@ +#include +#include +#include + +#include +#include + +#include +#include + +#include "lgsm_internals.h" + +int lgsm_modem_power(struct lgsm_handle *lh, int power) +{ + int type; + + if (power) + type = GSMD_MODEM_POWERUP; + else + type = GSMD_MODEM_POWERDOWN; + + return lgsm_send_simple(lh, GSMD_MSG_MODEM, type); +} -- cgit v1.2.3