Line data Source code
1 : #pragma once 2 : 3 : #include "SIM_config.h" 4 : 5 : #if AP_SIM_JEDEC_MX25L3206E_ENABLED 6 : 7 : #include "SIM_JEDEC.h" 8 : 9 : namespace SITL { 10 : 11 : class JEDEC_MX25L3206E : public JEDEC 12 : { 13 : protected: 14 : 15 : void fill_rdid(uint8_t *buf, uint8_t len) override; 16 : void fill_rdsr(uint8_t *buf, uint8_t len) override; 17 : 18 5 : const char *filename() const override { return "blackbox.bin"; } 19 231334 : uint8_t get_num_blocks() const override { return 64; } 20 231327 : uint16_t get_page_per_block() const override { return 256; } 21 177815 : uint8_t get_page_per_sector() const override { return 16; } 22 557327 : uint16_t get_page_size() const override { return 256; } 23 : 24 : private: 25 : 26 : static const uint8_t type = 0x20; 27 : static const uint8_t density = 0x16; 28 : }; 29 : 30 : } 31 : 32 : #endif // AP_SIM_JEDEC_MX25L3206E_ENABLED