| Electronic Components Datasheet Search |
|
GRSPW Datasheet(PDF) 35 Page - Actel Corporation |
|
|
|||||||||||||||||||||||||||||
GRSPW Datasheet(HTML) 35 Page - Actel Corporation |
|
35 / 48 page ![]() 35 GRSPW / GRSPW-FT Copyright Aeroflex Gaisler AB December 2008, Version 1.0.2 GAISLER Used for setting the different parameters in the spwvars struct. Should always be run first after creat- ing a spwvars struct. This function only initializes the struct. Does not write anything to the SpaceWire core. int spw_init(struct spwvars *spw); Initializes the GRSPW core located at the address set in the struct spw. Sets the following registers: node address, destination key, clock divisor, receiver maximum length, transmitter descriptor table address, receiver descriptor table address, ctrl and dmactrl. All bits are set to the values found in the spwvars struct. If a register bit is not present in the struct it will be set to zero. The descriptor tables are allocated to an aligned area using malloc. The status register is cleared and lastly the link interface is enabled. The run state frequency will be set according to the value in clkdiv. Table 30. Return values for spw_setparam Value Description 0 The function completed successfully 1 One or more of the parameters had an illegal value Table 31. Parameters for spw_setparam Parameter Description Allowed range nodeaddr Sets the node address value of the struct spw passed to the function. 0-255 clkdiv Sets the clock divisor value of the struct spw passed to the function. 0-255 destkey Sets the destination key of the struct spw passed to the function. 0-255 nospill Sets the nospill value of the struct spw passed to the function. 0 - 1 timetxen Sets the timetxen value of the struct spw passed to the function. 0 - 1 timerxen Sets the timerxen value of the struct spw passed to the function. 0 - 1 rxmaxlen Sets the receiver maximum length field of the struct spw passed to the function. 0 - 225-1 spwadr Sets the address to the GRSPW core which will be associated with the struct passed to the function. 0 - 232-1 Table 32. Return values for spw_init Value Description 0 The function completed successfully 1 One or more of the parameters could not be set correctly or the link failed to initialize. |
|
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 |