NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
flash_m25p16.h File Reference
#include <stdint.h>
#include "flash.h"
Include dependency graph for flash_m25p16.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M25P16_PAGESIZE   256
 

Functions

bool m25p16_init (void)
 
void m25p16_eraseSector (uint32_t address)
 
void m25p16_eraseCompletely (void)
 
void m25p16_pageProgram (uint32_t address, const uint8_t *data, int length)
 
void m25p16_pageProgramBegin (uint32_t address)
 
void m25p16_pageProgramContinue (const uint8_t *data, int length)
 
void m25p16_pageProgramFinish (void)
 
int m25p16_readBytes (uint32_t address, uint8_t *buffer, int length)
 
bool m25p16_isReady (void)
 
bool m25p16_waitForReady (uint32_t timeoutMillis)
 
const flashGeometry_tm25p16_getGeometry (void)
 

Macro Definition Documentation

#define M25P16_PAGESIZE   256

Function Documentation

void m25p16_eraseCompletely ( void  )
void m25p16_eraseSector ( uint32_t  address)
const flashGeometry_t* m25p16_getGeometry ( void  )
bool m25p16_init ( void  )
bool m25p16_isReady ( void  )
void m25p16_pageProgram ( uint32_t  address,
const uint8_t *  data,
int  length 
)
void m25p16_pageProgramBegin ( uint32_t  address)
void m25p16_pageProgramContinue ( const uint8_t *  data,
int  length 
)
void m25p16_pageProgramFinish ( void  )
int m25p16_readBytes ( uint32_t  address,
uint8_t *  buffer,
int  length 
)
bool m25p16_waitForReady ( uint32_t  timeoutMillis)