Document type:
Title:
Revision date:
Revision:
User's Manual (MUT)
Mod. N957 8k Multi-Channel Analyzer
28/05/2012
6
NPO:
Filename:
Number of pages:
Page:
00105/04:N957x.MUTx/06 N957_REV6
35
29
5. Library and Demo Software overview
5.1 N957Tool
library
5.1.1 N957Tool library: Overview
N957Tool library is a C-language implemented software tool, which allows the Users to
develop applications for operating the N957 board.
Fig. 5.1: Software layers
The library includes a set of functions grouped by purpose and hardware level
Board handling APIs
: allow the management of the board handler.
Miscellaneous APIs
: include miscellaneous functions (error decoding, library
version etc.).
Level 0 APIs:
include lower level functions; allow to access directly the board
registers, directly via their physical address.
Level 1 APIs:
include middle level functions; allow to access specified board
functions, regardless the User’s knowledge of the used registers addresses.
Furthermore they provide memory flash read/write capabilities.
Level 2 APIs:
include higher level functions; allow to execute macro functions,
such as data acquisition management, firmware upgrade, etc.
A set of files includes (
N957Lib.h, N957oslib.h, N957types.h
) all the APIs prototypes,
declarations depending on the operating system, and data type required in order to
develop applications based on the library.