Changes

Added info for 3 more ioctls, added info about possible WD_SetLinkState function.
Line 8: Line 8:  
! Outputs  
 
! Outputs  
 
! Function  
 
! Function  
 +
|-
 +
| 0x1001
 +
| 0
 +
| 0
 +
| WD_GetState
 
|-
 
|-
 
| 0x1002  
 
| 0x1002  
Line 17: Line 22:  
| 0  
 
| 0  
 
| 0  
 
| 0  
| ?
+
| WD_GetStatus
 
|-
 
|-
 
| 0x1004  
 
| 0x1004  
Line 23: Line 28:  
| 0  
 
| 0  
 
| WD_SetConfig
 
| WD_SetConfig
 +
|-
 +
| 0x1005
 +
| 3
 +
| 0
 +
| WD_GetConfig
 
|-
 
|-
 
| 0x1006  
 
| 0x1006  
Line 96: Line 106:  
s32 WD_SetConfig(wd_config *config, u32 flags1, u32 flags0);
 
s32 WD_SetConfig(wd_config *config, u32 flags1, u32 flags0);
 
flags0 | flags1 must be non-zero. Each bit in the flags corresponds to a field or struct in config. The associated bits and fields/structs are listed in the below wd_config struct. If clear, nothing is done for that field/struct, otherwise the field/struct may be verified; not all are verified. All bits and their associated fields/structs are verified,(if they have verification code) before updating the internal configuration.
 
flags0 | flags1 must be non-zero. Each bit in the flags corresponds to a field or struct in config. The associated bits and fields/structs are listed in the below wd_config struct. If clear, nothing is done for that field/struct, otherwise the field/struct may be verified; not all are verified. All bits and their associated fields/structs are verified,(if they have verification code) before updating the internal configuration.
 +
WD_GetConfig is similar to WD_SetConfig, except the configuaration from the internal config is copied to the input wd_config structure based on the flags.
 +
 +
WD_GetState always returns a value less than 7 and greater than 1. WD_GetState should always return state 3, any other states are illegal states. Frames can't be sent in illegal states.
 +
WD_GetStatus returns 0 or 1, depending on different flags for each state. For state 3, this returns 0 when wireless is disabled, 1 when enabled.
 +
WD_SetLinkState(1) disables wireless, while WD_SetLinkState(0) enables wireless? WD_SetLinkState input is an a pointer to a u32.
    
Configuration and info structs:
 
Configuration and info structs:
340

edits