door_lock_manager.h
Door lock manager for the Matter DoorLock cluster: owns bolt lock state plus the users…
Overview
Door lock manager for the Matter DoorLock cluster: owns bolt lock state plus the users, credentials, and weekday/yearday/holiday schedules backing the cluster's server attributes. Declares BoltLockManager (accessed via the BoltLockMgr() singleton) and the LockInitParams::LockParam/ParamBuilder types used to configure it from zap-derived capacity attributes at init time.
used by app_main.cpp app_shell.cpp door_lock_callbacks.cpp door_lock_manager.cpp
API
Cstruct WeekDaysScheduleInfo
Pairs a Matter week-day schedule entry with its DlScheduleStatus.
Cstruct YearDayScheduleInfo
Pairs a Matter year-day schedule entry with its DlScheduleStatus.
Cstruct HolidayScheduleInfo
Holds a Matter door lock holiday schedule entry paired with its DlScheduleStatus.
Fnamespace LockInitParams
Lock initialization parameters and a fluent builder for constructing them from Matter zap attribute values (user, credential, and schedule capacity limits) before passing them to BoltLockManager::Init.
Cstruct LockParam
Runtime configuration for the door lock, populated from Matter zap attributes: user, credential, and schedule capacity limits.
FLockParam GetLockParam()
Returns the lock's current LockParam.
Fclass BoltLockManager
Manages the door lock's bolt state, users, credentials, and schedules for the Matter DoorLock cluster. Owns fixed-size in-memory tables (users, credentials, weekday/yearday/holiday schedules) sized by kMax* constants, plus the associated name and credential-data buffers. Accessed through the process-wide singleton returned by BoltLockMgr(); callers must call Init() (and InitLockState()/ReadConfigValues() as needed) before use. Index-validity and credential-storage-index helpers must be used to translate cluster indices before touching the internal tables.
BoltLockMgrFinline BoltLockManager &BoltLockMgr()
Returns the process-wide BoltLockManager singleton (BoltLockManager::sLock).
class