mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
[EGD-4063] Added handling of PIN/PUK codes for SIM card objects. SimCard class was added (supply pin and puk, change sim, get state, get sim lock infromation, get attempts counters) URCCpin via URC handler was added New message type to send data handled in URCCpin handler to ServiceCellular
31 lines
613 B
C++
31 lines
613 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
namespace at
|
|
{
|
|
/// SimState extends AT states based on CPIN (URC and AT Command)
|
|
enum class SimState
|
|
{
|
|
Ready,
|
|
NotReady,
|
|
|
|
SimPin,
|
|
SimPuk,
|
|
SimPin2,
|
|
SimPuk2,
|
|
PhNetPin,
|
|
PhNetPuk,
|
|
PhNetSPin,
|
|
PhNetSPuk,
|
|
PhSpPin,
|
|
PhSpPuk,
|
|
PhCorpPin,
|
|
PhCorpPuk,
|
|
|
|
Locked, ///< In case of attempt counters equal zero
|
|
Unknown
|
|
};
|
|
} // namespace at
|