FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/services/tty/tty_api.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 /** | |
| 2 * @file tty_api.h | |
| 3 * | |
| 4 * API Definition for TTY SWE. | |
| 5 * | |
| 6 * @author Frederic Turgis (f-turgis@ti.com) & Gerard Cauvy (g-cauvy@ti.com) | |
| 7 * @version 0.1 | |
| 8 */ | |
| 9 | |
| 10 /* | |
| 11 * History: | |
| 12 * | |
| 13 * Date Modification | |
| 14 * ------------------------------------ | |
| 15 * 01/27/2003 Create | |
| 16 * | |
| 17 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved | |
| 18 */ | |
| 19 | |
| 20 #ifndef __TTY_API_H_ | |
| 21 #define __TTY_API_H_ | |
| 22 | |
| 23 #include "rvm/rvm_gen.h" /* Generic RVM types and functions. */ | |
| 24 | |
| 25 /* TTY entity (Background Task) is highly linked to the Audio entity. */ | |
| 26 #include "audio/audio_api.h" | |
| 27 | |
| 28 #ifdef __cplusplus | |
| 29 extern "C" | |
| 30 { | |
| 31 #endif | |
| 32 | |
| 33 typedef struct | |
| 34 { | |
| 35 UINT8 Mode; | |
| 36 UINT16 ThresholdRead; | |
| 37 UINT16 ThreshHoldWrite; | |
| 38 } | |
| 39 T_AUDIO_TTY_CONFIG_PARAMETER; | |
| 40 | |
| 41 #define TTY_STOP (0) | |
| 42 #define TTY_EXT_START (1) | |
| 43 | |
| 44 T_AUDIO_RET audio_tty_set_config (T_AUDIO_TTY_CONFIG_PARAMETER *parameter, | |
| 45 T_RV_RETURN *return_path); | |
| 46 | |
| 47 #define AUDIO_TTY_STATUS_MSG (0x00F2 | AUDIO_EVENT_EXTERN | AUDIO_EVENTS_MASK) | |
| 48 | |
| 49 typedef struct | |
| 50 { | |
| 51 T_RV_HDR os_hdr; | |
| 52 INT8 status; | |
| 53 } | |
| 54 T_AUDIO_TTY_STATUS; | |
| 55 | |
| 56 #ifdef __cplusplus | |
| 57 } | |
| 58 #endif | |
| 59 | |
| 60 | |
| 61 #endif /*__TTY_API_H_*/ | |
| 62 |
