2021-12-21 01:03:39 -04:00
|
|
|
#include "SIM_JEDEC_MX25L3206E.h"
|
|
|
|
|
2021-10-16 03:10:58 -03:00
|
|
|
#if AP_SIM_JEDEC_MX25L3206E_ENABLED
|
|
|
|
|
2021-12-21 01:03:39 -04:00
|
|
|
using namespace SITL;
|
|
|
|
|
|
|
|
void JEDEC_MX25L3206E::fill_rdid(uint8_t *buffer, uint8_t len)
|
|
|
|
{
|
|
|
|
buffer[0] = 0xC2;
|
|
|
|
buffer[1] = type;
|
|
|
|
buffer[2] = density;
|
|
|
|
}
|
|
|
|
|
|
|
|
void JEDEC_MX25L3206E::fill_rdsr(uint8_t *buffer, uint8_t len)
|
|
|
|
{
|
|
|
|
// we never allow multiple operations at a time
|
|
|
|
// hence we can never be busy while reading the status register
|
|
|
|
buffer[0] = 0x00;
|
|
|
|
}
|
2021-10-16 03:10:58 -03:00
|
|
|
|
|
|
|
#endif // AP_SIM_JEDEC_MX25L3206E_ENABLED
|