读取指定的NM(Non-volatile Memory)的数据
int nm_read(int $nm_id, int $offset, string &$rbuf, int $rlen)
读取数据大小(字节)
<?php
include "/lib/sd_340.php";
$rbuf = "";
nm_read(0, 0, $rbuf, 10); // Reading 10 bytes from address 0 of the NM0
hexdump($rbuf); // Outputting the data
?>