Skip to content

Commit

Permalink
dswifi: Add draft of DS WiFi general registers
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioND committed Jan 21, 2025
1 parent 9dc0f86 commit a12f0e4
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [DS Peripherals](ds_peripherals.md)
* [DS WiFi (Mitsumi)](ds_wifi.md)
* [DS WiFi I/O Map](ds_wifi_io_map.md)
* [DS WiFi General Registers](ds_wifi_general_regs.md)
* [DSi Introduction](dsi_introduction.md)
* [DSi I/O Map](dsi_io_map.md)
* [DSi Control Registers](dsi_control_regs.md)
Expand Down
163 changes: 163 additions & 0 deletions content/ds_wifi_general_regs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# DS WiFi General Registers

<a id="W_ID"></a>
## W\_ID: Chip ID (0x4808000, R)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | Chip ID

This register returns 0x1440 in NDS, 0xC340 in NDS lite.

<a id="W_MODE_RST"></a>
## W\_MODE\_RST: Reset (0x4808004, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | ???

<a id="W_MODE_WEP"></a>
## W\_MODE\_WEP: WEP mode (0x4808006, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-2 | Software mode?
| 3-5 | WEP key size

<a id="W_TXSTATCNT"></a>
## W\_TXSTATCNT: Beacons status register (0x4808008, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-11 | ???
| 12 |
| 13 |
| 14 |
| 15 |

<a id="W_X_00A"></a>
## W\_X\_00A: Unknown (0x480800A, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | ???

<a id="W_IF"></a>
## W\_IF: Interrupt request flags (0x4808010, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | See [W\_IE](ds_wifi_general_regs.md#W_IE))

<a id="W_IE"></a>
## W\_IE: Interrupt enable (0x4808012, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 | Unused
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |

<a id="W_MACADDR_0"></a>
## W\_MACADDR\_0: Hardware MAC address (0x4808018, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_MACADDR_1"></a>
## W\_MACADDR\_1: Hardware MAC address (0x480801A, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_MACADDR_2"></a>
## W\_MACADDR\_2: Hardware MAC address (0x480801C, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_BSSID_0"></a>
## W\_BSSID\_0: BSSID (0x4808020, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_BSSID_1"></a>
## W\_BSSID\_1: BSSID (0x4808022, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_BSSID_2"></a>
## W\_BSSID\_2: BSSID (0x4808024, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_AID_LOW"></a>
## W\_AID\_LOW: Unknown (0x4808028, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_AID_FULL"></a>
## W\_AID\_FULL: Association ID (0x480802A, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_TX_RETRYLIMIT"></a>
## W\_TX\_RETRYLIMIT: TX retry limit (0x480802C, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_INTERNAL_02E"></a>
## W\_INTERNAL\_02E: Unknown (0x480802E, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | Unknown

<a id="W_RXCNT"></a>
## W\_RXCNT: RX control (0x4808030, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_WEP_CNT"></a>
## W\_WEP\_CNT: WEP encryption enable (0x4808032, R/W)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 |

<a id="W_INTERNAL_034"></a>
## W\_INTERNAL\_034: Unknown (0x4808034, R?)

| Bit(s) | Description |
|--------|---------------------------------------------------------|
| 0-15 | Unknown

0 comments on commit a12f0e4

Please sign in to comment.