Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Data Structures | |
struct | spi_psram_cfg_type |
Psram ctrl configuration structure type definition. More... | |
Macros | |
#define | PSRAM_DRIVE_STRENGTH_50_OHMS 0 |
Psram drive strength type definition. More... | |
#define | PSRAM_DRIVE_STRENGTH_100_OHMS 1 |
#define | PSRAM_DRIVE_STRENGTH_200_OHMS 2 |
#define | PSRAM_BURST_LENGTH_16_BYTES 0 |
Psram burst length size type definition. More... | |
#define | PSRAM_BURST_LENGTH_32_BYTES 1 |
#define | PSRAM_BURST_LENGTH_64_BYTES 2 |
#define | PSRAM_BURST_LENGTH_512_BYTES 3 |
#define | PSRAM_SPI_CTRL_MODE 0 |
Psram ctrl mode type definition. More... | |
#define | PSRAM_QPI_CTRL_MODE 1 |
Functions | |
void | bflb_psram_init (struct spi_psram_cfg_type *psram_cfg, struct sf_ctrl_cmds_cfg *cmds_cfg, struct sf_ctrl_psram_cfg *sf_ctrl_psram_cfg) |
void | bflb_psram_readreg (struct spi_psram_cfg_type *psram_cfg, uint8_t *reg_value) |
void | bflb_psram_writereg (struct spi_psram_cfg_type *psram_cfg, uint8_t *reg_value) |
int | bflb_psram_setdrivestrength (struct spi_psram_cfg_type *psram_cfg) |
int | bflb_psram_setburstwrap (struct spi_psram_cfg_type *psram_cfg) |
void | bflb_psram_readid (struct spi_psram_cfg_type *psram_cfg, uint8_t *data) |
int | bflb_psram_enterquadmode (struct spi_psram_cfg_type *psram_cfg) |
int | bflb_psram_exitquadmode (struct spi_psram_cfg_type *psram_cfg) |
int | bflb_psram_toggleburstlength (struct spi_psram_cfg_type *psram_cfg, uint8_t ctrl_mode) |
int | bflb_psram_softwarereset (struct spi_psram_cfg_type *psram_cfg, uint8_t ctrl_mode) |
int | bflb_psram_set_idbus_cfg (struct spi_psram_cfg_type *psram_cfg, uint8_t io_mode, uint32_t addr, uint32_t len) |
int | bflb_psram_cache_write_set (struct spi_psram_cfg_type *psram_cfg, uint8_t io_mode, uint8_t wt_en, uint8_t wb_en, uint8_t wa_en) |
int | bflb_psram_write (struct spi_psram_cfg_type *psram_cfg, uint8_t io_mode, uint32_t addr, uint8_t *data, uint32_t len) |
int | bflb_psram_read (struct spi_psram_cfg_type *psram_cfg, uint8_t io_mode, uint32_t addr, uint8_t *data, uint32_t len) |
#define PSRAM_BURST_LENGTH_16_BYTES 0 |
Psram burst length size type definition.
Burst Length 16 bytes
Definition at line 59 of file bflb_spi_psram.h.
#define PSRAM_BURST_LENGTH_32_BYTES 1 |
Burst Length 32 bytes
Definition at line 60 of file bflb_spi_psram.h.
#define PSRAM_BURST_LENGTH_512_BYTES 3 |
Burst Length 512 bytes(default)
Definition at line 62 of file bflb_spi_psram.h.
#define PSRAM_BURST_LENGTH_64_BYTES 2 |
Burst Length 64 bytes
Definition at line 61 of file bflb_spi_psram.h.
#define PSRAM_DRIVE_STRENGTH_100_OHMS 1 |
Drive strength 100 ohms
Definition at line 53 of file bflb_spi_psram.h.
#define PSRAM_DRIVE_STRENGTH_200_OHMS 2 |
Drive strength 200 ohms
Definition at line 54 of file bflb_spi_psram.h.
#define PSRAM_DRIVE_STRENGTH_50_OHMS 0 |
Psram drive strength type definition.
Drive strength 50 ohms(default)
Definition at line 52 of file bflb_spi_psram.h.
#define PSRAM_QPI_CTRL_MODE 1 |
Psram QPI ctrl mode
Definition at line 68 of file bflb_spi_psram.h.
#define PSRAM_SPI_CTRL_MODE 0 |
Psram ctrl mode type definition.
Psram SPI ctrl mode
Definition at line 67 of file bflb_spi_psram.h.
int bflb_psram_cache_write_set | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | io_mode, | ||
uint8_t | wt_en, | ||
uint8_t | wb_en, | ||
uint8_t | wa_en | ||
) |
int bflb_psram_enterquadmode | ( | struct spi_psram_cfg_type * | psram_cfg | ) |
int bflb_psram_exitquadmode | ( | struct spi_psram_cfg_type * | psram_cfg | ) |
void bflb_psram_init | ( | struct spi_psram_cfg_type * | psram_cfg, |
struct sf_ctrl_cmds_cfg * | cmds_cfg, | ||
struct sf_ctrl_psram_cfg * | sf_ctrl_psram_cfg | ||
) |
int bflb_psram_read | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | io_mode, | ||
uint32_t | addr, | ||
uint8_t * | data, | ||
uint32_t | len | ||
) |
void bflb_psram_readid | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t * | data | ||
) |
void bflb_psram_readreg | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t * | reg_value | ||
) |
int bflb_psram_set_idbus_cfg | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | io_mode, | ||
uint32_t | addr, | ||
uint32_t | len | ||
) |
int bflb_psram_setburstwrap | ( | struct spi_psram_cfg_type * | psram_cfg | ) |
int bflb_psram_setdrivestrength | ( | struct spi_psram_cfg_type * | psram_cfg | ) |
int bflb_psram_softwarereset | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | ctrl_mode | ||
) |
int bflb_psram_toggleburstlength | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | ctrl_mode | ||
) |
int bflb_psram_write | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t | io_mode, | ||
uint32_t | addr, | ||
uint8_t * | data, | ||
uint32_t | len | ||
) |
void bflb_psram_writereg | ( | struct spi_psram_cfg_type * | psram_cfg, |
uint8_t * | reg_value | ||
) |