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

No writing! Protect block or whole chip. More...

Functions

W25Q_STATE W25Q_BlockReadOnly (u32_t Addr, bool enable)
 W25Q 4K Block lock Set read-only status to 4K block. More...
 
W25Q_STATE W25Q_BlockReadOnlyCheck (bool *state, u32_t Addr)
 W25Q 4K Block lock CHECK Check read-only status from 4K block. More...
 
W25Q_STATE W25Q_GlobalReadOnly (bool enable)
 W25Q Global read-only lock Set read-only status to the whole chip. More...
 

Detailed Description

No writing! Protect block or whole chip.

Function Documentation

◆ W25Q_BlockReadOnly()

W25Q_STATE W25Q_BlockReadOnly ( u32_t  Addr,
bool  enable 
)

W25Q 4K Block lock Set read-only status to 4K block.

Individual block/sector read-only lock.

Attention
Func in development
Parameters
[in]AddrBlock address
[in]enable1-Enable/0-Disable
Returns
W25Q_STATE enum

◆ W25Q_BlockReadOnlyCheck()

W25Q_STATE W25Q_BlockReadOnlyCheck ( bool *  state,
u32_t  Addr 
)

W25Q 4K Block lock CHECK Check read-only status from 4K block.

Check block's/sector's read-only lock status.

Attention
Func in development
Parameters
[out]stateBlock read-only status (1-locked/0-unlocked)
[in]AddrBlock address
Returns
W25Q_STATE enum

◆ W25Q_GlobalReadOnly()

W25Q_STATE W25Q_GlobalReadOnly ( bool  enable)

W25Q Global read-only lock Set read-only status to the whole chip.

Set read-only param to all chip.

Attention
Func in development
Parameters
[in]enable1-enable/0-disable
Returns
W25Q_STATE enum