| Electronic Components Datasheet Search |
|
GRSPW Datasheet(PDF) 34 Page - Actel Corporation |
|
|
|||||||||||||||||||||||||||||
GRSPW Datasheet(HTML) 34 Page - Actel Corporation |
|
34 / 48 page ![]() 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 - |
|
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 |
| 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 |