Contiki-Inga 3.x
Data Fields
bufmgr_t Struct Reference

#include <platform/inga/dev/at45db.h>

Data Fields

volatile uint8_t active_buffer
 
volatile uint8_t buffer_addr [2]
 
volatile uint8_t buf_to_page_addr [2]
 
volatile uint8_t page_program [2]
 

Detailed Description

This typedef manages the buffer switching, to perform the write operation

Definition at line 146 of file at45db.h.

Field Documentation

volatile uint8_t bufmgr_t::active_buffer

Holds the active buffer

  • 0 : Active Buffer = Buffer 1
  • 1 : Active Buffer = Buffer 2

Definition at line 154 of file at45db.h.

Referenced by at45db_buffer_to_page(), at45db_init(), at45db_write_buffer(), and at45db_write_page().

volatile uint8_t bufmgr_t::buf_to_page_addr[2]

The specific "buffer to page" opcode for buffer 1 and buffer 2

Definition at line 164 of file at45db.h.

Referenced by at45db_buffer_to_page(), and at45db_init().

volatile uint8_t bufmgr_t::buffer_addr[2]

The specific "byte(s) to buffer" opcode for buffer 1 and buffer 2

Definition at line 159 of file at45db.h.

Referenced by at45db_init(), and at45db_write_buffer().

volatile uint8_t bufmgr_t::page_program[2]

Main Memory Page Program (Erase Page + Reprogram directly in one operation)

Definition at line 169 of file at45db.h.

Referenced by at45db_init(), and at45db_write_page().