EasyManua.ls Logo

Bridgetek FT801 - CMD_MEMZERO - Write Zero to a Block of Memory

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
167
Product Page
Document Feedback Copyright © Bridgetek Limited
5.22 CMD_MEMZERO - write zero to a block of memory
C prototype
void cmd_memzero( uint32_t ptr,
uint32_t num );
Parameters
ptr
Starting address of the memory block
num
Number of bytes in the memory block
The completion of this function is detected when the value of REG_CMD_READ is
equal to REG_CMD_WRITE.
Command layout
+0
CMD_MEMZERO(0xffffff1c)
+4
ptr
+8
num
Examples
To erase the first 1K of main memory:
cmd_memzero(0, 1024);

Table of Contents