Electronic Components Datasheet Search
  English  ▼

X  

GRSPW Datasheet(PDF) 34 Page - Actel Corporation

Part # GRSPW
Description  SpaceWire CODEC with RMAP GRSPW / GRSPW-FT
PDF  48 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ACTEL [Actel Corporation]
Direct Link  http://www.actel.com
Logo ACTEL - Actel Corporation

GRSPW Datasheet(HTML) 34 Page - Actel Corporation

Back Button GRSPW Datasheet HTML 30Page - Actel Corporation GRSPW Datasheet HTML 31Page - Actel Corporation GRSPW Datasheet HTML 32Page - Actel Corporation GRSPW Datasheet HTML 33Page - Actel Corporation GRSPW Datasheet HTML 34Page - Actel Corporation GRSPW Datasheet HTML 35Page - Actel Corporation GRSPW Datasheet HTML 36Page - Actel Corporation GRSPW Datasheet HTML 37Page - Actel Corporation GRSPW Datasheet HTML 38Page - Actel Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 48 page
background image
34
GRSPW / GRSPW-FT
Copyright Aeroflex Gaisler AB
December 2008, Version 1.0.2
GAISLER
2.15
API
A simple Application Programming Interface (API) is provided together with the GRSPW. The API is
located in $(GRLIB)/software/spw. The files are rmapapi.c, spwapi.c, rmapapi.h, spwapi.h. The
spwapi.h file contains the declarations of the functions used for configuring the GRSPW and transfer-
ring data. The corresponding definitions are located in spwapi.c. The rmapapi is structured in the
same manner and contains a function for building RMAP packets.
These functions could be used as a simple starting point for developing drivers for the GRSPW. The
different functions are described in this section.
2.15.1 GRSPW Basic API
The basic GRSPW API is based on a struct spwvars which stores all the information for a single
GRSPW core. The information includes its address on the AMBA bus as well as SpaceWire parame-
ters such as node address and clock divisor. A pointer to this struct is used as a input parameter to all
the functions. If several cores are used, a separate struct for each core is created and used when the
specific core is accessed.
The following functions are available in the basic API:
int spw_setparam(int nodeaddr, int clkdiv, int destkey, int nospill, int timetxen, int
timerxen, int rxmaxlen, int spwadr, struct spwvars *spw);
Table 29. The spwvars struct
Field
Description
Allowed range
regs
Pointer to the GRSPW
-
nospill
The nospill value used for the core.
0 - 1
rmap
Indicates whether the core is configured with RMAP. Set by
spw_init.
0 - 1
rxunaligned
Indicates whether the core is configured with rxunaligned support.
Set by spw_init.
0 - 1
rmapcrc
Indicates whether the core is configured with RMAPCRC support.
Set by spw_init.
0 - 1
clkdiv
The clock divisor value used for the core.
0 - 255
nodeaddr
The node address value used for the core.
0 - 255
destkey
The destination key value used for the core.
0 - 255
rxmaxlen
The Receiver maximum length value used for the core.
0 - 33554431
rxpnt
Pointer to the next receiver descriptor.
0 - 127
rxchkpnt
Pointer to the next receiver descriptor that will be polled.
0 - 127
txpnt
Pointer to the next transmitter descriptor.
0 - 63
txchkpnt
Pointer to the next transmitter descriptor that will be polled.
0 - 63
timetxen
The timetxen value used for this core.
0 - 1
timerxen
The timerxen value used for this core.
0 - 1
txd
Pointer to the transmitter descriptor table.
-
rxd
Pointer to the receiver descriptor table
-



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com