From 33b13190e1e8925100a7d577ce9ee72344eff987 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Tue, 26 Feb 2008 08:57:39 +0000 Subject: gsmd: add vibrator at cmd (Sudharshan S) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4115 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_phone.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/libgsmd') diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c index 2c67e8e..5ad5e44 100644 --- a/src/libgsmd/libgsmd_phone.c +++ b/src/libgsmd/libgsmd_phone.c @@ -74,3 +74,15 @@ int lgsm_get_battery(struct lgsm_handle *lh) { return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_BATTERY); } + +int lgsm_phone_vibrator(struct lgsm_handle *lh, int enable) +{ + int type; + if(enable) + type = GSMD_PHONE_VIB_ENABLE; + else + type = GSMD_PHONE_VIB_DISABLE; + + return lgsm_send_simple(lh, GSMD_MSG_PHONE, type); +} + -- cgit v1.2.3