mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
uncrustify libraries/DataFlash/DataFlash_APM2.h
This commit is contained in:
parent
0fd0f46568
commit
2ad28632c4
@ -8,29 +8,29 @@
|
|||||||
|
|
||||||
class DataFlash_APM2 : public DataFlash_Class
|
class DataFlash_APM2 : public DataFlash_Class
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
//Methods
|
//Methods
|
||||||
unsigned char BufferRead (unsigned char BufferNum, uint16_t IntPageAdr);
|
unsigned char BufferRead (unsigned char BufferNum, uint16_t IntPageAdr);
|
||||||
void BufferWrite (unsigned char BufferNum, uint16_t IntPageAdr, unsigned char Data);
|
void BufferWrite (unsigned char BufferNum, uint16_t IntPageAdr, unsigned char Data);
|
||||||
void BufferToPage (unsigned char BufferNum, uint16_t PageAdr, unsigned char wait);
|
void BufferToPage (unsigned char BufferNum, uint16_t PageAdr, unsigned char wait);
|
||||||
void PageToBuffer(unsigned char BufferNum, uint16_t PageAdr);
|
void PageToBuffer(unsigned char BufferNum, uint16_t PageAdr);
|
||||||
void WaitReady();
|
void WaitReady();
|
||||||
unsigned char ReadStatusReg();
|
unsigned char ReadStatusReg();
|
||||||
unsigned char ReadStatus();
|
unsigned char ReadStatus();
|
||||||
uint16_t PageSize();
|
uint16_t PageSize();
|
||||||
|
|
||||||
unsigned char SPI_transfer(unsigned char data);
|
unsigned char SPI_transfer(unsigned char data);
|
||||||
void CS_inactive();
|
void CS_inactive();
|
||||||
void CS_active();
|
void CS_active();
|
||||||
void PageErase (uint16_t PageAdr);
|
void PageErase (uint16_t PageAdr);
|
||||||
void BlockErase (uint16_t BlockAdr);
|
void BlockErase (uint16_t BlockAdr);
|
||||||
void ChipErase(void (*delay_cb)(unsigned long));
|
void ChipErase(void (*delay_cb)(unsigned long));
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DataFlash_APM2(); // Constructor
|
DataFlash_APM2(); // Constructor
|
||||||
void Init();
|
void Init();
|
||||||
void ReadManufacturerID();
|
void ReadManufacturerID();
|
||||||
bool CardInserted();
|
bool CardInserted();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user