#include <stdint.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
struct flashsim * | flashsim_open (const char *name, int size, int sector_size) |
void | flashsim_close (struct flashsim *sim) |
void | flashsim_sector_erase (struct flashsim *sim, int addr) |
void | flashsim_read (struct flashsim *sim, int addr, uint8_t *buf, int len) |
void | flashsim_program (struct flashsim *sim, int addr, const uint8_t *buf, int len) |
void flashsim_close | ( | struct flashsim * | sim | ) |
Definition at line 49 of file flashsim.c.
struct flashsim* flashsim_open | ( | const char * | name, |
int | size, | ||
int | sector_size | ||
) |
Definition at line 36 of file flashsim.c.
void flashsim_program | ( | struct flashsim * | sim, |
int | addr, | ||
const uint8_t * | buf, | ||
int | len | ||
) |
Definition at line 86 of file flashsim.c.
void flashsim_read | ( | struct flashsim * | sim, |
int | addr, | ||
uint8_t * | buf, | ||
int | len | ||
) |
Definition at line 70 of file flashsim.c.
void flashsim_sector_erase | ( | struct flashsim * | sim, |
int | addr | ||
) |
Definition at line 55 of file flashsim.c.