mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
uncrustify libraries/DataFlash/DataFlash_APM1.cpp
This commit is contained in:
parent
a32a9bd986
commit
0fd0f46568
@ -1,35 +1,35 @@
|
|||||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
/*
|
/*
|
||||||
DataFlash_APM1.cpp - DataFlash log library for AT45DB161
|
* DataFlash_APM1.cpp - DataFlash log library for AT45DB161
|
||||||
Code by Jordi Munoz and Jose Julio. DIYDrones.com
|
* Code by Jordi Munoz and Jose Julio. DIYDrones.com
|
||||||
This code works with boards based on ATMega168/328 and ATMega1280/2560 using SPI port
|
* This code works with boards based on ATMega168/328 and ATMega1280/2560 using SPI port
|
||||||
|
*
|
||||||
This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
version 2.1 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
Dataflash library for AT45DB161D flash memory
|
* Dataflash library for AT45DB161D flash memory
|
||||||
Memory organization : 4096 pages of 512 bytes or 528 bytes
|
* Memory organization : 4096 pages of 512 bytes or 528 bytes
|
||||||
|
*
|
||||||
Maximun write bandwidth : 512 bytes in 14ms
|
* Maximun write bandwidth : 512 bytes in 14ms
|
||||||
This code is written so the master never has to wait to write the data on the eeprom
|
* This code is written so the master never has to wait to write the data on the eeprom
|
||||||
|
*
|
||||||
Methods:
|
* Methods:
|
||||||
Init() : Library initialization (SPI initialization)
|
* Init() : Library initialization (SPI initialization)
|
||||||
StartWrite(page) : Start a write session. page=start page.
|
* StartWrite(page) : Start a write session. page=start page.
|
||||||
WriteByte(data) : Write a byte
|
* WriteByte(data) : Write a byte
|
||||||
WriteInt(data) : Write an integer (2 bytes)
|
* WriteInt(data) : Write an integer (2 bytes)
|
||||||
WriteLong(data) : Write a long (4 bytes)
|
* WriteLong(data) : Write a long (4 bytes)
|
||||||
StartRead(page) : Start a read on (page)
|
* StartRead(page) : Start a read on (page)
|
||||||
GetWritePage() : Returns the last page written to
|
* GetWritePage() : Returns the last page written to
|
||||||
GetPage() : Returns the last page read
|
* GetPage() : Returns the last page read
|
||||||
ReadByte()
|
* ReadByte()
|
||||||
ReadInt()
|
* ReadInt()
|
||||||
ReadLong()
|
* ReadLong()
|
||||||
|
*
|
||||||
Properties:
|
* Properties:
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user