Skip to content

Commit

Permalink
Added parameters for suit_invoke_args
Browse files Browse the repository at this point in the history
Ref: NCSDK-29998

Signed-off-by: Artur Hadasz <[email protected]>
  • Loading branch information
ahasztag committed Nov 29, 2024
1 parent 9c5e8f1 commit 8f9ce90
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
15 changes: 14 additions & 1 deletion suit_generator/suit/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
suit_candidate_verification,
suit_uninstall,
suit_text,
suit_synchronous_invoke,
suit_timeout,
)
from suit_generator.logger import log_call

Expand Down Expand Up @@ -265,6 +267,17 @@ class SuitParameterVersion(SuitKeyValueTuple):
)


class SuitParameterInvokeArgs(SuitKeyValue):
"""Representation of SUIT version parameter."""

_metadata = Metadata(
map={
suit_synchronous_invoke: SuitBool,
suit_timeout: SuitUint,
}
)


class SuitParameters(SuitKeyValue):
"""Representation of SUIT parameters."""

Expand All @@ -281,7 +294,7 @@ class SuitParameters(SuitKeyValue):
suit_parameter_encryption_info: SuitEncryptionInfo,
suit_parameter_uri: SuitTstr,
suit_parameter_source_component: SuitUint,
suit_parameter_invoke_args: SuitBstr,
suit_parameter_invoke_args: cbstr(SuitParameterInvokeArgs),
suit_parameter_device_identifier: SuitUUID,
suit_parameter_version: cbstr(SuitParameterVersion),
}
Expand Down
14 changes: 14 additions & 0 deletions suit_generator/suit/types/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,3 +769,17 @@ class suit_send_sysinfo_failure(suit_key):

id = 8
name = "suit-send-sysinfo-failure"


class suit_synchronous_invoke(suit_key):
"""Synchronous invoke argument."""

id = 1
name = "suit-synchronous-invoke"


class suit_timeout(suit_key):
"""Timeout invoke argument."""

id = 2
name = "suit-timeout"

0 comments on commit 8f9ce90

Please sign in to comment.