Skip to main content

Module resource

Module resource 

Source
Expand description

The resource layer — application-layer state machines (ETSI EN 50221 §8), one per resource, driven by the session layer’s APDUs.

Each resource implements Resource: it reacts to its session opening and to incoming APDUs, producing APDUs to send back, host Notifications, and requests to open further (module-provided) resources. This module ships the mandatory ResourceManager; application_information / conditional_access / date_time / mmi land as further Resource impls.

Structs§

ApplicationInformation
Application Information (§8.4.2) — module-provided. On open, enquires the module’s application info; surfaces it as Notification::ApplicationInfo.
ConditionalAccess
Conditional Access Support (§8.4.3) — module-provided. On open, enquires the module’s supported CA_system_ids (Notification::CaInfo); decodes ca_pmt_reply (Notification::CaPmtReply). The host sends ca_pmt via HostRequest::SendCaPmt.
DateTime
Date-Time (§8.5.2) — host-provided. On date_time_enq replies with the current UTC; if the enquiry’s response_interval is non-zero, re-sends every response_interval seconds (driven by tick).
Mmi
MMI (§8.6) — module-provided. Surfaces the module’s menus/enquiries and the close as Notification::Mmi events for the application to display, and answers the module’s display_control mode negotiation. The host drives the dialog back through Driver::mmi_menu_answer / mmi_enquiry_answer / mmi_cancel (sent by CiStack on the open MMI session).
ResourceManager
Resource Manager (§8.4.1) — host-provided. Drives the profile exchange and, once complete, reports Notification::CamReady and asks the host to open the module-provided resources it understands.
ResourceOut
What a resource wants done after reacting to an input.

Traits§

Resource
An EN 50221 application-layer resource.