I/O API Calls
read_u8()
| Usage | u8 read_u8(u32 address) |
| Include | driver/io.h |
| Parameters | [IN] address SoC address |
| Returns | [OUT] 8-bit data |
| Description | Read 8-bit data from the specified address. |
read_u16()
| Usage | u16 read_u16(u32 address) |
| Include | driver/io.h |
| Parameters | [IN] address SoC address |
| Returns | [OUT] 16-bit data |
| Description | Read 16-bit data from the specified address. |
read_u32()
| Usage | u32 read_u32(u32 address) |
| Include | driver/io.h |
| Parameters | [IN] address SoC address |
| Returns | [OUT] 32-bit data |
| Description | Read 32-bit data from the specified address. |
write_u8()
| Usage | void write_u8(u8 data, u32 address) |
| Include | driver/io.h |
| Parameters | [IN] [IN]
data SoC address dataaddress SoC address |
| Description | Write 8 bits unsigned data to the specified address. |
write_u16()
| Usage | void write_u16(u16 data, u32 address) |
| Include | driver/io.h |
| Parameters | [IN] [IN]
data SoC address dataaddress SoC address |
| Description | Write 16 bits unsigned data to the specified address. |
write_u32()
| Usage | void write_u32(u32 data, u32 address) |
| Include | driver/io.h |
| Parameters | [IN] [IN]
data SoC address dataaddress SoC address |
| Description | Write 32 bits unsigned data to the specified address. |
write_u32_ad()
| Usage | void write_u32_ad(u32 address, u32 data) |
| Include | driver/io.h |
| Parameters | [IN] [IN]
address SoC addressdata SoC address data |
| Description | Write 32 bits unsigned data to the specified address. |