SysIo  1.9.0
Embedded Library and tools
iomap.h
1 
8 #ifndef _SYSIO_IOMAP_H_
9 #define _SYSIO_IOMAP_H_
10 #include <sysio/defs.h>
11 #ifdef __cplusplus
12  extern "C" {
13 #endif
14 /* ========================================================================== */
15 
24 /* structures =============================================================== */
25 
33 typedef struct xIoMap xIoMap;
34 
35 /* internal public functions ================================================ */
43 xIoMap * xIoMapOpen (unsigned long base, unsigned int size);
44 
50 int iIoMapClose (xIoMap *p);
51 
52 
59 bool bIoMapIsOpen (const xIoMap *p);
60 
67 unsigned long ulIoMapBase (const xIoMap *p);
68 
75 unsigned int uIoMapSize (const xIoMap *p);
76 
84 volatile unsigned int * pIo(const xIoMap *p, unsigned int offset);
85 
90 /* ========================================================================== */
91 #ifdef __cplusplus
92  }
93 #endif
94 #endif /*_SYSIO_IOMAP_H_ defined */
xIoMap * xIoMapOpen(unsigned long base, unsigned int size)
Ouverture d&#39;une projection mémoire.
bool bIoMapIsOpen(const xIoMap *p)
Indique si une projection mémoire est ouverte.
volatile unsigned int * pIo(const xIoMap *p, unsigned int offset)
Pointeur d&#39;accès aux registres.
struct xIoMap xIoMap
Projection mémoire.
Definition: iomap.h:33
int iIoMapClose(xIoMap *p)
Fermeture d&#39;une projection mémoire.
unsigned long ulIoMapBase(const xIoMap *p)
Adresse de base de la zone projetée.
unsigned int uIoMapSize(const xIoMap *p)
Taille de la zone projetée.