SerialFlash transfers request prepared by the AT25 driver.
This structure is sent to the at25_send_command function which is application dependent. This function transforms at25_cmd_t request into api command request.
Data Fields | |
uint32_t | address |
SerialFlash internal address. More... | |
uint8_t | cmd |
Command byte opcode. More... | |
uint8_t | cmd_size |
Size of command (command byte + address bytes + dummy bytes) in bytes. More... | |
uint8_t * | data |
Data buffer to be sent or received. More... | |
uint16_t | data_size |
Number of bytes to send/receive. More... | |
uint32_t at25_cmd::address |
SerialFlash internal address.
Referenced by at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at25dfx_read(), at25dfx_read_dev_id(), at25dfx_read_sector_protect_status(), at25dfx_read_status(), at25dfx_send_command(), at25dfx_write(), and at25dfx_write_status().
uint8_t at25_cmd::cmd |
Command byte opcode.
Referenced by at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at25dfx_read(), at25dfx_read_dev_id(), at25dfx_read_sector_protect_status(), at25dfx_read_status(), at25dfx_send_command(), at25dfx_write(), and at25dfx_write_status().
uint8_t at25_cmd::cmd_size |
Size of command (command byte + address bytes + dummy bytes) in bytes.
Referenced by at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at25dfx_read(), at25dfx_read_dev_id(), at25dfx_read_sector_protect_status(), at25dfx_read_status(), at25dfx_send_command(), at25dfx_write(), and at25dfx_write_status().
uint8_t* at25_cmd::data |
Data buffer to be sent or received.
Referenced by at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at25dfx_read(), at25dfx_read_dev_id(), at25dfx_read_sector_protect_status(), at25dfx_read_status(), at25dfx_send_command(), at25dfx_write(), and at25dfx_write_status().
uint16_t at25_cmd::data_size |
Number of bytes to send/receive.
Referenced by at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at25dfx_read(), at25dfx_read_dev_id(), at25dfx_read_sector_protect_status(), at25dfx_read_status(), at25dfx_send_command(), at25dfx_write(), and at25dfx_write_status().