STM32 W25Qxx QuadSPI Driver  0.1a
https://github.com/Crazy-Geeks/STM32-W25Q-QSPI
Functions
Write functions

Program/write operations - single data type variables or raw 8-bit blocks. More...

Functions

W25Q_STATE W25Q_SetBurstWrap (u8_t WrapSize)
 W25Q Burst Wrap settings. More...
 
W25Q_STATE W25Q_ProgramSByte (i8_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Signed Byte Program signed 8-bit byte variable. More...
 
W25Q_STATE W25Q_ProgramByte (u8_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Unsigned Byte Program unsigned 8-bit byte vairable. More...
 
W25Q_STATE W25Q_ProgramSWord (i16_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Signed Word Program signed 16-bit word vairable. More...
 
W25Q_STATE W25Q_ProgramWord (u16_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Unsigned Word Program unsigned 16-bit word vairable. More...
 
W25Q_STATE W25Q_ProgramSLong (i32_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Signed Long Program signed 32-bit long vairable. More...
 
W25Q_STATE W25Q_ProgramLong (u32_t buf, u8_t pageShift, u32_t pageNum)
 W25Q Program single Unigned Long Program unsigned 32-bit long vairable. More...
 
W25Q_STATE W25Q_ProgramData (u8_t *buf, u16_t len, u8_t pageShift, u32_t pageNum)
 W25Q Program any 8-bit data Program any 8-bit data to preffered page place. More...
 
W25Q_STATE W25Q_ProgramRaw (u8_t *buf, u16_t data_len, u32_t rawAddr)
 W25Q Program any 8-bit data to raw addr Program any 8-bit data to preffered chip address. More...
 

Detailed Description

Program/write operations - single data type variables or raw 8-bit blocks.

Function Documentation

◆ W25Q_ProgramByte()

W25Q_STATE W25Q_ProgramByte ( u8_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Unsigned Byte Program unsigned 8-bit byte vairable.

Program 8-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..254)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramData()

W25Q_STATE W25Q_ProgramData ( u8_t buf,
u16_t  len,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program any 8-bit data Program any 8-bit data to preffered page place.

Program any 8-bit data.

Note
Use memcpy to prepare data
Parameters
[in]bufPointer to data to be written (single or array)
[in]lenLength of data (1..256)
[in]pageShiftByte shift inside page (0..255 - len)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramLong()

W25Q_STATE W25Q_ProgramLong ( u32_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Unigned Long Program unsigned 32-bit long vairable.

Program 32-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..251)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramRaw()

W25Q_STATE W25Q_ProgramRaw ( u8_t buf,
u16_t  data_len,
u32_t  rawAddr 
)

W25Q Program any 8-bit data to raw addr Program any 8-bit data to preffered chip address.

Program data to raw addr.

Note
Address is in [byte] size
Be carefull with page overrun
Parameters
[in]bufPointer to data to be written (single or array)
[in]data_lenLength of data (1..256)
[in]rawAddrStart address of chip's cell
Returns
W25Q_STATE enum

◆ W25Q_ProgramSByte()

W25Q_STATE W25Q_ProgramSByte ( i8_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Signed Byte Program signed 8-bit byte variable.

Program signed 8-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..254)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramSLong()

W25Q_STATE W25Q_ProgramSLong ( i32_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Signed Long Program signed 32-bit long vairable.

Program signed 32-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..251)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramSWord()

W25Q_STATE W25Q_ProgramSWord ( i16_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Signed Word Program signed 16-bit word vairable.

Program signed 16-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..253)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_ProgramWord()

W25Q_STATE W25Q_ProgramWord ( u16_t  buf,
u8_t  pageShift,
u32_t  pageNum 
)

W25Q Program single Unsigned Word Program unsigned 16-bit word vairable.

Program 16-bit variable.

Parameters
[in]bufData to be written (single)
[in]pageShiftByte shift inside page (0..253)
[in]pageNumPage number (0..PAGE_COUNT)
Returns
W25Q_STATE enum

◆ W25Q_SetBurstWrap()

W25Q_STATE W25Q_SetBurstWrap ( u8_t  WrapSize)

W25Q Burst Wrap settings.

Set Burst with Wrap.

Attention
Func in development
Parameters
[in]WrapSizeWrap size: 8/16/32/64 / 0 - disable
Returns
W25Q_STATE enum