![]() |
Nano100AN Series BSP
V3.02.002
The Board Support Package for Nano100AN Series
|
Macros | |
| #define | M8(addr) (*((vu8 *) (addr))) |
| Get a 8-bit unsigned value from specified address. More... | |
| #define | M16(addr) (*((vu16 *) (addr))) |
| Get a 16-bit unsigned value from specified address. More... | |
| #define | M32(addr) (*((vu32 *) (addr))) |
| Get a 32-bit unsigned value from specified address. More... | |
| #define | outpw(port, value) *((volatile unsigned int *)(port)) = value |
| Set a 32-bit unsigned value to specified I/O port. More... | |
| #define | inpw(port) (*((volatile unsigned int *)(port))) |
| Get a 32-bit unsigned value from specified I/O port. More... | |
| #define | outps(port, value) *((volatile unsigned short *)(port)) = value |
| Set a 16-bit unsigned value to specified I/O port. More... | |
| #define | inps(port) (*((volatile unsigned short *)(port))) |
| Get a 16-bit unsigned value from specified I/O port. More... | |
| #define | outpb(port, value) *((volatile unsigned char *)(port)) = value |
| Set a 8-bit unsigned value to specified I/O port. More... | |
| #define | inpb(port) (*((volatile unsigned char *)(port))) |
| Get a 8-bit unsigned value from specified I/O port. More... | |
| #define | outp32(port, value) *((volatile unsigned int *)(port)) = value |
| Set a 32-bit unsigned value to specified I/O port. More... | |
| #define | inp32(port) (*((volatile unsigned int *)(port))) |
| Get a 32-bit unsigned value from specified I/O port. More... | |
| #define | outp16(port, value) *((volatile unsigned short *)(port)) = value |
| Set a 16-bit unsigned value to specified I/O port. More... | |
| #define | inp16(port) (*((volatile unsigned short *)(port))) |
| Get a 16-bit unsigned value from specified I/O port. More... | |
| #define | outp8(port, value) *((volatile unsigned char *)(port)) = value |
| Set a 8-bit unsigned value to specified I/O port. More... | |
| #define | inp8(port) (*((volatile unsigned char *)(port))) |
| Get a 8-bit unsigned value from specified I/O port. More... | |
Typedefs | |
| typedef volatile unsigned char | vu8 |
| Define 8-bit unsigned volatile data type. More... | |
| typedef volatile unsigned short | vu16 |
| Define 16-bit unsigned volatile data type. More... | |
| typedef volatile unsigned long | vu32 |
| Define 32-bit unsigned volatile data type. More... | |
The Declaration of NANO100 I/O Routines
| #define inp16 | ( | port | ) | (*((volatile unsigned short *)(port))) |
Get a 16-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 16-bit data from |
Definition at line 10255 of file Nano100Series.h.
| #define inp32 | ( | port | ) | (*((volatile unsigned int *)(port))) |
Get a 32-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 32-bit data from |
Definition at line 10238 of file Nano100Series.h.
| #define inp8 | ( | port | ) | (*((volatile unsigned char *)(port))) |
Get a 8-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 8-bit data from |
Definition at line 10270 of file Nano100Series.h.
| #define inpb | ( | port | ) | (*((volatile unsigned char *)(port))) |
Get a 8-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 8-bit data from |
Definition at line 10221 of file Nano100Series.h.
| #define inps | ( | port | ) | (*((volatile unsigned short *)(port))) |
Get a 16-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 16-bit data from |
Definition at line 10206 of file Nano100Series.h.
| #define inpw | ( | port | ) | (*((volatile unsigned int *)(port))) |
Get a 32-bit unsigned value from specified I/O port.
| [in] | port | Port address to get 32-bit data from |
Definition at line 10189 of file Nano100Series.h.
| #define M16 | ( | addr | ) | (*((vu16 *) (addr))) |
Get a 16-bit unsigned value from specified address.
| [in] | addr | Address to get 16-bit data from |
Definition at line 10164 of file Nano100Series.h.
| #define M32 | ( | addr | ) | (*((vu32 *) (addr))) |
Get a 32-bit unsigned value from specified address.
| [in] | addr | Address to get 32-bit data from |
Definition at line 10172 of file Nano100Series.h.
| #define M8 | ( | addr | ) | (*((vu8 *) (addr))) |
Get a 8-bit unsigned value from specified address.
| [in] | addr | Address to get 8-bit data from |
Definition at line 10156 of file Nano100Series.h.
Set a 16-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 16-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10247 of file Nano100Series.h.
Set a 32-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 32-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10230 of file Nano100Series.h.
Set a 8-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 8-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10263 of file Nano100Series.h.
Set a 8-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 8-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10214 of file Nano100Series.h.
Set a 16-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 16-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10198 of file Nano100Series.h.
Set a 32-bit unsigned value to specified I/O port.
| [in] | port | Port address to set 32-bit data |
| [in] | value | Value to write to I/O port |
Definition at line 10181 of file Nano100Series.h.
Define 16-bit unsigned volatile data type.
Definition at line 10148 of file Nano100Series.h.
Define 32-bit unsigned volatile data type.
Definition at line 10149 of file Nano100Series.h.
Define 8-bit unsigned volatile data type.
Definition at line 10147 of file Nano100Series.h.
1.8.15