mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
fa6adc0beb
We currently use AP_Logger_SITL for this purpose but we can instead add a dataflash simulator which can work with existing AP_Logger_Dataflash backend instead of using AP_Logger_SITL. Co-Authored-By: Divyateja Pasupuleti <divyateja2004@gmail.com>
18 lines
404 B
C++
18 lines
404 B
C++
#include "SIM_JEDEC_MX25L3206E.h"
|
|
|
|
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;
|
|
}
|