Skip to content

Commit

Permalink
Document machine.HardwareID
Browse files Browse the repository at this point in the history
  • Loading branch information
kenbell committed Oct 20, 2023
1 parent 725851b commit 4fc33c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/docs/reference/machine.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ CPUReset performs a hard system reset.

Not all chips support CPUReset.

```go
func HardwareID() []byte
```

HardwareID returns a byte array containing a unique id (aka Serial Number) specific to this chip. In some architectures (notably RP2040) the hardware ID is actually the ID of the flash chip. The hardware ID can be useful for identifying specific devices within a family. There is no guarantee the ID is globally unique. The size of the ID is chip-family specific with 8 bytes (64 bits) and 16 bytes (128 bits) being common.

Not all chips have a hardware ID.

```go
func GetRNG() uint32
```
Expand Down

0 comments on commit 4fc33c9

Please sign in to comment.