periph_get_lock_state

Get write protect state for the given hardware module.

static int32_t periph_get_lock_state(
    void *const module,
    bool *const state
)

Parameters

module

Type: void *const

Pointer to the hardware module

state

Type: bool *const

Pointer to write protect state for specified module

Returns

Type: int32_t