| 
    APM:Libraries
    
   | 
 
#include <DataFlash_Revo.h>
Classes | |
| struct | PageHeader | 
Public Member Functions | |
| DataFlash_Revo (DataFlash_Class &front, DFMessageWriter_DFLogStart *writer) | |
| void | Init () override | 
| void | ReadManufacturerID () | 
| bool | CardInserted (void) const | 
| uint8_t | ReadStatus () | 
| bool | logging_enabled () const | 
| bool | logging_failed () const | 
| void | stop_logging (void) | 
| void | EraseAll () | 
| bool | NeedPrep (void) | 
| void | Prep () | 
| bool | _WritePrioritisedBlock (const void *pBuffer, uint16_t size, bool is_critical) | 
| uint16_t | get_num_logs () override | 
| uint16_t | start_new_log (void) | 
| void | get_log_boundaries (uint16_t log_num, uint16_t &start_page, uint16_t &end_page) | 
| uint16_t | find_last_log () override | 
| void | get_log_info (uint16_t log_num, uint32_t &size, uint32_t &time_utc) | 
| int16_t | get_log_data_raw (uint16_t log_num, uint16_t page, uint32_t offset, uint16_t len, uint8_t *data) | 
| int16_t | get_log_data (uint16_t log_num, uint16_t page, uint32_t offset, uint16_t len, uint8_t *data) | 
| uint32_t | bufferspace_available () | 
| bool | logging_started (void) const | 
  Public Member Functions inherited from DataFlash_Backend | |
| FUNCTOR_TYPEDEF (vehicle_startup_message_Log_Writer, void) | |
| DataFlash_Backend (DataFlash_Class &front, class DFMessageWriter_DFLogStart *writer) | |
| vehicle_startup_message_Log_Writer | vehicle_message_writer () | 
| void | internal_error () | 
| bool | WriteBlock (const void *pBuffer, uint16_t size) | 
| bool | WriteCriticalBlock (const void *pBuffer, uint16_t size) | 
| bool | WritePrioritisedBlock (const void *pBuffer, uint16_t size, bool is_critical) | 
| void | set_mission (const AP_Mission *mission) | 
| virtual void | PrepForArming () | 
| void | Log_Fill_Format (const struct LogStructure *structure, struct log_Format &pkt) | 
| void | Log_Fill_Format_Units (const struct LogStructure *s, struct log_Format_Units &pkt) | 
| virtual void | flush (void) | 
| virtual void | remote_log_block_status_msg (mavlink_channel_t chan, mavlink_message_t *msg) | 
| virtual void | periodic_tasks () | 
| uint8_t | num_types () const | 
| const struct LogStructure * | structure (uint8_t structure) const | 
| uint8_t | num_units () const | 
| const struct UnitStructure * | unit (uint8_t unit) const | 
| uint8_t | num_multipliers () const | 
| const struct MultiplierStructure * | multiplier (uint8_t multiplier) const | 
| void | Log_Write_EntireMission (const AP_Mission &mission) | 
| bool | Log_Write_Format (const struct LogStructure *structure) | 
| bool | Log_Write_MavCmd (uint16_t cmd_total, const mavlink_mission_item_t &mav_cmd) | 
| bool | Log_Write_Message (const char *message) | 
| bool | Log_Write_Mission_Cmd (const AP_Mission &mission, const AP_Mission::Mission_Command &cmd) | 
| bool | Log_Write_Mode (uint8_t mode, uint8_t reason=0) | 
| bool | Log_Write_Parameter (const char *name, float value) | 
| bool | Log_Write_Parameter (const AP_Param *ap, const AP_Param::ParamToken &token, enum ap_var_type type) | 
| uint32_t | num_dropped (void) const | 
| bool | Log_Write_Emit_FMT (uint8_t msg_type) | 
| bool | Log_Write (uint8_t msg_type, va_list arg_list, bool is_critical=false) | 
| virtual void | vehicle_was_disarmed () | 
| bool | Log_Write_Unit (const struct UnitStructure *s) | 
| bool | Log_Write_Multiplier (const struct MultiplierStructure *s) | 
| bool | Log_Write_Format_Units (const struct LogStructure *structure) | 
Protected Member Functions | |
| bool | WritesOK () const override | 
  Protected Member Functions inherited from DataFlash_Backend | |
| virtual void | periodic_10Hz (const uint32_t now) | 
| virtual void | periodic_1Hz (const uint32_t now) | 
| virtual void | periodic_fullrate (const uint32_t now) | 
| bool | ShouldLog (bool is_critical) | 
| virtual bool | StartNewLogOK () const | 
| virtual bool | WriteBlockCheckStartupMessages () | 
| virtual void | WriteMoreStartupMessages () | 
| virtual void | push_log_blocks () | 
| virtual void | start_new_log_reset_variables () | 
Protected Attributes | |
| uint8_t | df_manufacturer | 
| uint16_t | df_device | 
| uint16_t | df_PageSize | 
| uint32_t | df_NumPages | 
  Protected Attributes inherited from DataFlash_Backend | |
| DataFlash_Class & | _front | 
| DFMessageWriter_DFLogStart * | _startup_messagewriter | 
| bool | _writing_startup_messages | 
| uint8_t | _internal_errors | 
| uint32_t | _dropped | 
| bool | _initialised | 
Private Member Functions | |
| void | BufferWrite (uint8_t BufferNum, uint16_t IntPageAdr, uint8_t Data) | 
| void | BufferToPage (uint8_t BufferNum, uint16_t PageAdr, uint8_t wait) | 
| void | PageToBuffer (uint8_t BufferNum, uint16_t PageAdr) | 
| void | WaitReady () | 
| uint8_t | ReadStatusReg () | 
| uint16_t | PageSize () | 
| void | PageErase (uint16_t PageAdr) | 
| void | BlockErase (uint16_t BlockAdr) | 
| void | ChipErase () | 
| void | Flash_Jedec_WriteEnable () | 
| void | Flash_Jedec_EraseSector (uint32_t chip_offset) | 
| void | BlockWrite (uint8_t BufferNum, uint16_t IntPageAdr, const void *pHeader, uint8_t hdr_size, const void *pBuffer, uint16_t size) | 
| bool | BlockRead (uint8_t BufferNum, uint16_t IntPageAdr, void *pBuffer, uint16_t size) | 
| bool | cs_assert () | 
| void | cs_release () | 
| void | spi_write (uint8_t b) | 
| void | spi_write (int data) | 
| bool | NeedErase (void) | 
| void | StartRead (uint16_t PageAdr) | 
| uint16_t | find_last_page (void) | 
| uint16_t | find_last_page_of_log (uint16_t log_number) | 
| bool | check_wrapped (void) | 
| uint16_t | GetPage (void) | 
| uint16_t | GetWritePage (void) | 
| void | StartWrite (uint16_t PageAdr) | 
| void | FinishWrite (void) | 
| bool | getSectorCount (uint32_t *ptr) | 
| bool | ReadBlock (void *pBuffer, uint16_t size) | 
| void | SetFileNumber (uint16_t FileNumber) | 
| uint16_t | GetFilePage () | 
| uint16_t | GetFileNumber () | 
Static Private Member Functions | |
| static bool | _sem_take (uint8_t timeout) | 
Private Attributes | |
| uint8_t | df_BufferNum | 
| uint8_t | df_Read_BufferNum | 
| uint16_t | df_BufferIdx | 
| uint16_t | df_Read_BufferIdx | 
| uint16_t | df_PageAdr | 
| uint16_t | df_Read_PageAdr | 
| uint16_t | df_FileNumber | 
| uint16_t | df_FilePage | 
| bool | adding_fmt_headers | 
| uint8_t | erase_cmd | 
| uint32_t | erase_size | 
| uint16_t | last_block_num | 
Static Private Attributes | |
| static AP_HAL::OwnPtr< AP_HAL::SPIDevice > | _spi | 
| static AP_HAL::Semaphore * | _spi_sem | 
| static bool | log_write_started | 
| static bool | flash_died | 
Definition at line 46 of file DataFlash_Revo.h.
      
  | 
  inline | 
Definition at line 153 of file DataFlash_Revo.h.
      
  | 
  staticprivate | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  inlinevirtual | 
Implements DataFlash_Backend.
Definition at line 158 of file DataFlash_Revo.h.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  overridevirtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  virtual | 
Implements DataFlash_Backend.
| int16_t DataFlash_Revo::get_log_data_raw | ( | uint16_t | log_num, | 
| uint16_t | page, | ||
| uint32_t | offset, | ||
| uint16_t | len, | ||
| uint8_t * | data | ||
| ) | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  overridevirtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  overridevirtual | 
Reimplemented from DataFlash_Backend.
      
  | 
  inlinevirtual | 
Implements DataFlash_Backend.
Definition at line 162 of file DataFlash_Revo.h.
      
  | 
  inlinevirtual | 
Implements DataFlash_Backend.
Definition at line 163 of file DataFlash_Revo.h.
      
  | 
  inlinevirtual | 
Implements DataFlash_Backend.
Definition at line 191 of file DataFlash_Revo.h.
      
  | 
  private | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  inlineprivate | 
Definition at line 55 of file DataFlash_Revo.h.
      
  | 
  private | 
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  privatevirtual | 
Implements DataFlash_Backend.
| void DataFlash_Revo::ReadManufacturerID | ( | ) | 
| uint8_t DataFlash_Revo::ReadStatus | ( | ) | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  inlineprivate | 
      
  | 
  inlineprivate | 
Definition at line 89 of file DataFlash_Revo.h.
Referenced by spi_write().
      
  | 
  virtual | 
Implements DataFlash_Backend.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  inlinevirtual | 
Implements DataFlash_Backend.
Definition at line 165 of file DataFlash_Revo.h.
      
  | 
  private | 
      
  | 
  overrideprotectedvirtual | 
Implements DataFlash_Backend.
      
  | 
  staticprivate | 
Definition at line 78 of file DataFlash_Revo.h.
      
  | 
  staticprivate | 
Definition at line 79 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 111 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 103 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 101 of file DataFlash_Revo.h.
      
  | 
  protected | 
Definition at line 141 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 107 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 108 of file DataFlash_Revo.h.
      
  | 
  protected | 
Definition at line 140 of file DataFlash_Revo.h.
      
  | 
  protected | 
Definition at line 145 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 105 of file DataFlash_Revo.h.
      
  | 
  protected | 
Definition at line 144 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 104 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 102 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 106 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 135 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 136 of file DataFlash_Revo.h.
      
  | 
  staticprivate | 
Definition at line 91 of file DataFlash_Revo.h.
      
  | 
  private | 
Definition at line 137 of file DataFlash_Revo.h.
      
  | 
  staticprivate | 
Definition at line 80 of file DataFlash_Revo.h.
 1.8.13