blob: 82a2e2d4be3ab53d630a716a2117864f9cbee84f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/******************************************************************************
*
* Copyright 2007-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*
******************************************************************************
*
* File: iapiLow.h
*
* $Id iapiLow.h $
*
* Description:
* prototypes for low level function of I.API
*
*
*
*
* $Log iapiLow.h
*
* ***************************************************************************/
#ifndef _iapiLow_h
#define _iapiLow_h
/* ****************************************************************************
* Boolean identifiers
*****************************************************************************/
#define NO_OS 0
#define LINUX 1
#define SYMBIAN 2
#define WINCE 3
/* ****************************************************************************
* Include File Section
*****************************************************************************/
#include "sdmaStruct.h"
#include "iapiDefaults.h"
#include "iapiOS.h"
#ifdef MCU
#include "iapiLowMcu.h"
#endif /*MCU*/
#if OS == NO_OS
#include <stdlib.h>
#elif OS == LINUX
#include <linux/types.h>
#endif
/* ****************************************************************************
* Macro-command Section
*****************************************************************************/
#define GOTO_SLEEP(x) (iapi_GotoSleep)(x)
#define INIT_SLEEP(x) (iapi_InitSleep)(x)
/* ****************************************************************************
* Public Function Prototype Section
*****************************************************************************/
void iapi_lowStartChannel(unsigned char channel);
void iapi_lowStopChannel(unsigned char channel);
void iapi_AttachCallbackISR(channelDescriptor *cd_p,
void (*func_p) (channelDescriptor *cd_p,
void *arg));
void iapi_DetachCallbackISR(channelDescriptor *cd_p);
void iapi_ChangeCallbackISR(channelDescriptor *cd_p,
void (*func_p) (channelDescriptor *cd_p,
void *arg));
void iapi_lowSynchChannel(unsigned char channel);
void iapi_SetBufferDescriptor(bufferDescriptor *bd_p, unsigned char command,
unsigned char status, unsigned short count,
void *buffAddr, void *extBufferAddr);
#endif /* _iapiLow_h */
|