Просмотр исходного кода

Merge seader from https://github.com/bettse/seader

Willy-JL 1 год назад
Родитель
Сommit
a059814356
39 измененных файлов с 55 добавлено и 144 удалено
  1. 2 4
      seader/lib/asn1/CardDetails.c
  2. 1 1
      seader/lib/asn1/CardDetails.h
  3. 1 1
      seader/lib/asn1/CardDetected.c
  4. 1 1
      seader/lib/asn1/CardDetected.h
  5. 2 10
      seader/lib/asn1/ContentElementTag.c
  6. 1 6
      seader/lib/asn1/ContentElementTag.h
  7. 1 1
      seader/lib/asn1/ErrorResponse.c
  8. 1 1
      seader/lib/asn1/ErrorResponse.h
  9. 2 10
      seader/lib/asn1/FrameProtocol.c
  10. 1 5
      seader/lib/asn1/FrameProtocol.h
  11. 2 10
      seader/lib/asn1/NFCCommand.c
  12. 1 2
      seader/lib/asn1/NFCCommand.h
  13. 2 10
      seader/lib/asn1/NFCResponse.c
  14. 1 2
      seader/lib/asn1/NFCResponse.h
  15. 2 4
      seader/lib/asn1/NFCRx.c
  16. 1 1
      seader/lib/asn1/NFCRx.h
  17. 2 4
      seader/lib/asn1/NFCSend.c
  18. 1 1
      seader/lib/asn1/NFCSend.h
  19. 1 1
      seader/lib/asn1/NoArguments.c
  20. 1 5
      seader/lib/asn1/NoArguments.h
  21. 1 1
      seader/lib/asn1/PAC.c
  22. 1 5
      seader/lib/asn1/PAC.h
  23. 2 10
      seader/lib/asn1/Payload.c
  24. 1 1
      seader/lib/asn1/Payload.h
  25. 1 1
      seader/lib/asn1/Protocol.c
  26. 1 5
      seader/lib/asn1/Protocol.h
  27. 1 1
      seader/lib/asn1/RequestPacs.c
  28. 1 1
      seader/lib/asn1/RequestPacs.h
  29. 2 10
      seader/lib/asn1/Response.c
  30. 1 2
      seader/lib/asn1/Response.h
  31. 1 1
      seader/lib/asn1/RfStatus.c
  32. 1 5
      seader/lib/asn1/RfStatus.h
  33. 2 10
      seader/lib/asn1/SamCommand.c
  34. 1 2
      seader/lib/asn1/SamCommand.h
  35. 1 1
      seader/lib/asn1/SamResponse.c
  36. 1 5
      seader/lib/asn1/SamResponse.h
  37. 1 1
      seader/lib/asn1/SamVersion.c
  38. 1 1
      seader/lib/asn1/SamVersion.h
  39. 7 1
      seader/readme.md

+ 2 - 4
seader/lib/asn1/CardDetails.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "CardDetails.h"
@@ -45,7 +45,6 @@ asn_TYPE_member_t asn_MBR_CardDetails_1[] = {
 		"sak"
 		},
 };
-static const int asn_MAP_CardDetails_oms_1[] = { 2, 3 };
 static const ber_tlv_tag_t asn_DEF_CardDetails_tags_1[] = {
 	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
 };
@@ -60,8 +59,7 @@ asn_SEQUENCE_specifics_t asn_SPC_CardDetails_specs_1 = {
 	offsetof(struct CardDetails, _asn_ctx),
 	asn_MAP_CardDetails_tag2el_1,
 	4,	/* Count of tags in the map */
-	asn_MAP_CardDetails_oms_1,	/* Optional members */
-	2, 0,	/* Root/Additions */
+	0, 0, 0,	/* Optional elements (not needed) */
 	-1,	/* First extension addition */
 };
 asn_TYPE_descriptor_t asn_DEF_CardDetails = {

+ 1 - 1
seader/lib/asn1/CardDetails.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_CardDetails_H_

+ 1 - 1
seader/lib/asn1/CardDetected.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "CardDetected.h"

+ 1 - 1
seader/lib/asn1/CardDetected.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_CardDetected_H_

+ 2 - 10
seader/lib/asn1/ContentElementTag.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "ContentElementTag.h"
@@ -11,14 +11,6 @@
  * This type is implemented using NativeEnumerated,
  * so here we adjust the DEF accordingly.
  */
-static asn_oer_constraints_t asn_OER_type_ContentElementTag_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-asn_per_constraints_t asn_PER_type_ContentElementTag_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 0,  0,  0,  0 }	/* (0..0) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 static const asn_INTEGER_enum_map_t asn_MAP_ContentElementTag_value2enum_1[] = {
 	{ 4,	32,	"implicitFormatPhysicalAccessBits" }
 };
@@ -47,7 +39,7 @@ asn_TYPE_descriptor_t asn_DEF_ContentElementTag = {
 	asn_DEF_ContentElementTag_tags_1,	/* Same as above */
 	sizeof(asn_DEF_ContentElementTag_tags_1)
 		/sizeof(asn_DEF_ContentElementTag_tags_1[0]), /* 1 */
-	{ &asn_OER_type_ContentElementTag_constr_1, &asn_PER_type_ContentElementTag_constr_1, NativeEnumerated_constraint },
+	{ 0, 0, NativeEnumerated_constraint },
 	0, 0,	/* Defined elsewhere */
 	&asn_SPC_ContentElementTag_specs_1	/* Additional specs */
 };

+ 1 - 6
seader/lib/asn1/ContentElementTag.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_ContentElementTag_H_
@@ -27,7 +27,6 @@ typedef enum ContentElementTag {
 typedef long	 ContentElementTag_t;
 
 /* Implementation */
-extern asn_per_constraints_t asn_PER_type_ContentElementTag_constr_1;
 extern asn_TYPE_descriptor_t asn_DEF_ContentElementTag;
 extern const asn_INTEGER_specifics_t asn_SPC_ContentElementTag_specs_1;
 asn_struct_free_f ContentElementTag_free;
@@ -37,10 +36,6 @@ ber_type_decoder_f ContentElementTag_decode_ber;
 der_type_encoder_f ContentElementTag_encode_der;
 xer_type_decoder_f ContentElementTag_decode_xer;
 xer_type_encoder_f ContentElementTag_encode_xer;
-oer_type_decoder_f ContentElementTag_decode_oer;
-oer_type_encoder_f ContentElementTag_encode_oer;
-per_type_decoder_f ContentElementTag_decode_uper;
-per_type_encoder_f ContentElementTag_encode_uper;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/ErrorResponse.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "ErrorResponse.h"

+ 1 - 1
seader/lib/asn1/ErrorResponse.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_ErrorResponse_H_

+ 2 - 10
seader/lib/asn1/FrameProtocol.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "FrameProtocol.h"
@@ -11,14 +11,6 @@
  * This type is implemented using NativeEnumerated,
  * so here we adjust the DEF accordingly.
  */
-static asn_oer_constraints_t asn_OER_type_FrameProtocol_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-static asn_per_constraints_t asn_PER_type_FrameProtocol_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 static const asn_INTEGER_enum_map_t asn_MAP_FrameProtocol_value2enum_1[] = {
 	{ 2,	3,	"nfc" },
 	{ 4,	6,	"iclass" }
@@ -49,7 +41,7 @@ asn_TYPE_descriptor_t asn_DEF_FrameProtocol = {
 	asn_DEF_FrameProtocol_tags_1,	/* Same as above */
 	sizeof(asn_DEF_FrameProtocol_tags_1)
 		/sizeof(asn_DEF_FrameProtocol_tags_1[0]), /* 1 */
-	{ &asn_OER_type_FrameProtocol_constr_1, &asn_PER_type_FrameProtocol_constr_1, NativeEnumerated_constraint },
+	{ 0, 0, NativeEnumerated_constraint },
 	0, 0,	/* Defined elsewhere */
 	&asn_SPC_FrameProtocol_specs_1	/* Additional specs */
 };

+ 1 - 5
seader/lib/asn1/FrameProtocol.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_FrameProtocol_H_
@@ -36,10 +36,6 @@ ber_type_decoder_f FrameProtocol_decode_ber;
 der_type_encoder_f FrameProtocol_encode_der;
 xer_type_decoder_f FrameProtocol_decode_xer;
 xer_type_encoder_f FrameProtocol_encode_xer;
-oer_type_decoder_f FrameProtocol_decode_oer;
-oer_type_encoder_f FrameProtocol_encode_oer;
-per_type_decoder_f FrameProtocol_decode_uper;
-per_type_encoder_f FrameProtocol_encode_uper;
 
 #ifdef __cplusplus
 }

+ 2 - 10
seader/lib/asn1/NFCCommand.c

@@ -2,19 +2,11 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "NFCCommand.h"
 
-static asn_oer_constraints_t asn_OER_type_NFCCommand_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-asn_per_constraints_t asn_PER_type_NFCCommand_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 asn_TYPE_member_t asn_MBR_NFCCommand_1[] = {
 	{ ATF_NOFLAGS, 0, offsetof(struct NFCCommand, choice.nfcSend),
 		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
@@ -57,7 +49,7 @@ asn_TYPE_descriptor_t asn_DEF_NFCCommand = {
 	0,	/* No effective tags (count) */
 	0,	/* No tags (pointer) */
 	0,	/* No tags (count) */
-	{ &asn_OER_type_NFCCommand_constr_1, &asn_PER_type_NFCCommand_constr_1, CHOICE_constraint },
+	{ 0, 0, CHOICE_constraint },
 	asn_MBR_NFCCommand_1,
 	2,	/* Elements count */
 	&asn_SPC_NFCCommand_specs_1	/* Additional specs */

+ 1 - 2
seader/lib/asn1/NFCCommand.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_NFCCommand_H_
@@ -43,7 +43,6 @@ typedef struct NFCCommand {
 extern asn_TYPE_descriptor_t asn_DEF_NFCCommand;
 extern asn_CHOICE_specifics_t asn_SPC_NFCCommand_specs_1;
 extern asn_TYPE_member_t asn_MBR_NFCCommand_1[2];
-extern asn_per_constraints_t asn_PER_type_NFCCommand_constr_1;
 
 #ifdef __cplusplus
 }

+ 2 - 10
seader/lib/asn1/NFCResponse.c

@@ -2,19 +2,11 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "NFCResponse.h"
 
-static asn_oer_constraints_t asn_OER_type_NFCResponse_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-asn_per_constraints_t asn_PER_type_NFCResponse_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 asn_TYPE_member_t asn_MBR_NFCResponse_1[] = {
 	{ ATF_NOFLAGS, 0, offsetof(struct NFCResponse, choice.nfcRx),
 		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
@@ -57,7 +49,7 @@ asn_TYPE_descriptor_t asn_DEF_NFCResponse = {
 	0,	/* No effective tags (count) */
 	0,	/* No tags (pointer) */
 	0,	/* No tags (count) */
-	{ &asn_OER_type_NFCResponse_constr_1, &asn_PER_type_NFCResponse_constr_1, CHOICE_constraint },
+	{ 0, 0, CHOICE_constraint },
 	asn_MBR_NFCResponse_1,
 	2,	/* Elements count */
 	&asn_SPC_NFCResponse_specs_1	/* Additional specs */

+ 1 - 2
seader/lib/asn1/NFCResponse.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_NFCResponse_H_
@@ -43,7 +43,6 @@ typedef struct NFCResponse {
 extern asn_TYPE_descriptor_t asn_DEF_NFCResponse;
 extern asn_CHOICE_specifics_t asn_SPC_NFCResponse_specs_1;
 extern asn_TYPE_member_t asn_MBR_NFCResponse_1[2];
-extern asn_per_constraints_t asn_PER_type_NFCResponse_constr_1;
 
 #ifdef __cplusplus
 }

+ 2 - 4
seader/lib/asn1/NFCRx.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "NFCRx.h"
@@ -27,7 +27,6 @@ asn_TYPE_member_t asn_MBR_NFCRx_1[] = {
 		"rfStatus"
 		},
 };
-static const int asn_MAP_NFCRx_oms_1[] = { 0 };
 static const ber_tlv_tag_t asn_DEF_NFCRx_tags_1[] = {
 	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
 };
@@ -40,8 +39,7 @@ asn_SEQUENCE_specifics_t asn_SPC_NFCRx_specs_1 = {
 	offsetof(struct NFCRx, _asn_ctx),
 	asn_MAP_NFCRx_tag2el_1,
 	2,	/* Count of tags in the map */
-	asn_MAP_NFCRx_oms_1,	/* Optional members */
-	1, 0,	/* Root/Additions */
+	0, 0, 0,	/* Optional elements (not needed) */
 	-1,	/* First extension addition */
 };
 asn_TYPE_descriptor_t asn_DEF_NFCRx = {

+ 1 - 1
seader/lib/asn1/NFCRx.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_NFCRx_H_

+ 2 - 4
seader/lib/asn1/NFCSend.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "NFCSend.h"
@@ -45,7 +45,6 @@ asn_TYPE_member_t asn_MBR_NFCSend_1[] = {
 		"format"
 		},
 };
-static const int asn_MAP_NFCSend_oms_1[] = { 3 };
 static const ber_tlv_tag_t asn_DEF_NFCSend_tags_1[] = {
 	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
 };
@@ -60,8 +59,7 @@ asn_SEQUENCE_specifics_t asn_SPC_NFCSend_specs_1 = {
 	offsetof(struct NFCSend, _asn_ctx),
 	asn_MAP_NFCSend_tag2el_1,
 	4,	/* Count of tags in the map */
-	asn_MAP_NFCSend_oms_1,	/* Optional members */
-	1, 0,	/* Root/Additions */
+	0, 0, 0,	/* Optional elements (not needed) */
 	-1,	/* First extension addition */
 };
 asn_TYPE_descriptor_t asn_DEF_NFCSend = {

+ 1 - 1
seader/lib/asn1/NFCSend.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_NFCSend_H_

+ 1 - 1
seader/lib/asn1/NoArguments.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "NoArguments.h"

+ 1 - 5
seader/lib/asn1/NoArguments.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_NoArguments_H_
@@ -30,10 +30,6 @@ ber_type_decoder_f NoArguments_decode_ber;
 der_type_encoder_f NoArguments_encode_der;
 xer_type_decoder_f NoArguments_decode_xer;
 xer_type_encoder_f NoArguments_encode_xer;
-oer_type_decoder_f NoArguments_decode_oer;
-oer_type_encoder_f NoArguments_encode_oer;
-per_type_decoder_f NoArguments_decode_uper;
-per_type_encoder_f NoArguments_encode_uper;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/PAC.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "PAC.h"

+ 1 - 5
seader/lib/asn1/PAC.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_PAC_H_
@@ -30,10 +30,6 @@ ber_type_decoder_f PAC_decode_ber;
 der_type_encoder_f PAC_encode_der;
 xer_type_decoder_f PAC_decode_xer;
 xer_type_encoder_f PAC_encode_xer;
-oer_type_decoder_f PAC_decode_oer;
-oer_type_encoder_f PAC_encode_oer;
-per_type_decoder_f PAC_decode_uper;
-per_type_encoder_f PAC_encode_uper;
 
 #ifdef __cplusplus
 }

+ 2 - 10
seader/lib/asn1/Payload.c

@@ -2,19 +2,11 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "Payload.h"
 
-static asn_oer_constraints_t asn_OER_type_Payload_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-static asn_per_constraints_t asn_PER_type_Payload_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 2,  2,  0,  3 }	/* (0..3) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 static asn_TYPE_member_t asn_MBR_Payload_1[] = {
 	{ ATF_NOFLAGS, 0, offsetof(struct Payload, choice.samCommand),
 		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
@@ -77,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_Payload = {
 	0,	/* No effective tags (count) */
 	0,	/* No tags (pointer) */
 	0,	/* No tags (count) */
-	{ &asn_OER_type_Payload_constr_1, &asn_PER_type_Payload_constr_1, CHOICE_constraint },
+	{ 0, 0, CHOICE_constraint },
 	asn_MBR_Payload_1,
 	4,	/* Elements count */
 	&asn_SPC_Payload_specs_1	/* Additional specs */

+ 1 - 1
seader/lib/asn1/Payload.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_Payload_H_

+ 1 - 1
seader/lib/asn1/Protocol.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "Protocol.h"

+ 1 - 5
seader/lib/asn1/Protocol.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_Protocol_H_
@@ -30,10 +30,6 @@ ber_type_decoder_f Protocol_decode_ber;
 der_type_encoder_f Protocol_encode_der;
 xer_type_decoder_f Protocol_decode_xer;
 xer_type_encoder_f Protocol_encode_xer;
-oer_type_decoder_f Protocol_decode_oer;
-oer_type_encoder_f Protocol_encode_oer;
-per_type_decoder_f Protocol_decode_uper;
-per_type_encoder_f Protocol_encode_uper;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/RequestPacs.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "RequestPacs.h"

+ 1 - 1
seader/lib/asn1/RequestPacs.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_RequestPacs_H_

+ 2 - 10
seader/lib/asn1/Response.c

@@ -2,19 +2,11 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "Response.h"
 
-static asn_oer_constraints_t asn_OER_type_Response_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-asn_per_constraints_t asn_PER_type_Response_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 1,  1,  0,  1 }	/* (0..1) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 asn_TYPE_member_t asn_MBR_Response_1[] = {
 	{ ATF_NOFLAGS, 0, offsetof(struct Response, choice.nfcResponse),
 		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
@@ -57,7 +49,7 @@ asn_TYPE_descriptor_t asn_DEF_Response = {
 	0,	/* No effective tags (count) */
 	0,	/* No tags (pointer) */
 	0,	/* No tags (count) */
-	{ &asn_OER_type_Response_constr_1, &asn_PER_type_Response_constr_1, CHOICE_constraint },
+	{ 0, 0, CHOICE_constraint },
 	asn_MBR_Response_1,
 	2,	/* Elements count */
 	&asn_SPC_Response_specs_1	/* Additional specs */

+ 1 - 2
seader/lib/asn1/Response.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_Response_H_
@@ -43,7 +43,6 @@ typedef struct Response {
 extern asn_TYPE_descriptor_t asn_DEF_Response;
 extern asn_CHOICE_specifics_t asn_SPC_Response_specs_1;
 extern asn_TYPE_member_t asn_MBR_Response_1[2];
-extern asn_per_constraints_t asn_PER_type_Response_constr_1;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/RfStatus.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "RfStatus.h"

+ 1 - 5
seader/lib/asn1/RfStatus.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_RfStatus_H_
@@ -30,10 +30,6 @@ ber_type_decoder_f RfStatus_decode_ber;
 der_type_encoder_f RfStatus_encode_der;
 xer_type_decoder_f RfStatus_decode_xer;
 xer_type_encoder_f RfStatus_encode_xer;
-oer_type_decoder_f RfStatus_decode_oer;
-oer_type_encoder_f RfStatus_encode_oer;
-per_type_decoder_f RfStatus_decode_uper;
-per_type_encoder_f RfStatus_encode_uper;
 
 #ifdef __cplusplus
 }

+ 2 - 10
seader/lib/asn1/SamCommand.c

@@ -2,19 +2,11 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "SamCommand.h"
 
-static asn_oer_constraints_t asn_OER_type_SamCommand_constr_1 CC_NOTUSED = {
-	{ 0, 0 },
-	-1};
-asn_per_constraints_t asn_PER_type_SamCommand_constr_1 CC_NOTUSED = {
-	{ APC_CONSTRAINED,	 2,  2,  0,  3 }	/* (0..3) */,
-	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
-	0, 0	/* No PER value map */
-};
 asn_TYPE_member_t asn_MBR_SamCommand_1[] = {
 	{ ATF_NOFLAGS, 0, offsetof(struct SamCommand, choice.requestPacs),
 		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
@@ -77,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_SamCommand = {
 	0,	/* No effective tags (count) */
 	0,	/* No tags (pointer) */
 	0,	/* No tags (count) */
-	{ &asn_OER_type_SamCommand_constr_1, &asn_PER_type_SamCommand_constr_1, CHOICE_constraint },
+	{ 0, 0, CHOICE_constraint },
 	asn_MBR_SamCommand_1,
 	4,	/* Elements count */
 	&asn_SPC_SamCommand_specs_1	/* Additional specs */

+ 1 - 2
seader/lib/asn1/SamCommand.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_SamCommand_H_
@@ -49,7 +49,6 @@ typedef struct SamCommand {
 extern asn_TYPE_descriptor_t asn_DEF_SamCommand;
 extern asn_CHOICE_specifics_t asn_SPC_SamCommand_specs_1;
 extern asn_TYPE_member_t asn_MBR_SamCommand_1[4];
-extern asn_per_constraints_t asn_PER_type_SamCommand_constr_1;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/SamResponse.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "SamResponse.h"

+ 1 - 5
seader/lib/asn1/SamResponse.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_SamResponse_H_
@@ -30,10 +30,6 @@ ber_type_decoder_f SamResponse_decode_ber;
 der_type_encoder_f SamResponse_encode_der;
 xer_type_decoder_f SamResponse_decode_xer;
 xer_type_encoder_f SamResponse_encode_xer;
-oer_type_decoder_f SamResponse_decode_oer;
-oer_type_encoder_f SamResponse_encode_oer;
-per_type_decoder_f SamResponse_decode_uper;
-per_type_encoder_f SamResponse_encode_uper;
 
 #ifdef __cplusplus
 }

+ 1 - 1
seader/lib/asn1/SamVersion.c

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #include "SamVersion.h"

+ 1 - 1
seader/lib/asn1/SamVersion.h

@@ -2,7 +2,7 @@
  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  * From ASN.1 module "Seader"
  * 	found in "seader.asn1"
- * 	`asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
+ * 	`asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  */
 
 #ifndef	_SamVersion_H_

+ 7 - 1
seader/readme.md

@@ -43,7 +43,7 @@ Optionally 3d print a [case designed by sean](https://www.printables.com/model/5
 ### To Build ASN1 (if you change seader.asn1)
 
  * Install git version of [asnc1](https://github.com/vlm/asn1c) (`brew install asn1c --head` on macos)
- * Run `asn1c -D ./lib/asn1 -no-gen-example -pdu=all seader.asn1` in in root to generate asn1c files
+ * Run `asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all seader.asn1` in in root to generate asn1c files
 
 ## References
 
@@ -52,3 +52,9 @@ Optionally 3d print a [case designed by sean](https://www.printables.com/model/5
 - [omnikey_5027_software_developer_guide](https://www.hidglobal.com/sites/default/files/documentlibrary/omnikey_5027_software_developer_guide.pdf)
 - [PLT-03362 A.0 - iCLASS Reader Writer Migration Application Note](http://web.archive.org/web/20230330180023/https://info.hidglobal.com/rs/289-TSC-352/images/PLT-03362%20A.0%20-%20iCLASS%20Reader%20Writer%20Migration%20Application%20Note.pdf)
 - [HID SE reader消息模块的ANS.1 BER学习](https://blog.csdn.net/eyasys/article/details/8501200)
+
+## Memory usage commands
+
+- `arm-none-eabi-nm ~/.ufbt/build/seader.fap -CS --size-sort`
+- `arm-none-eabi-readelf ~/.ufbt/build/seader.fap -t`
+- `ufbt cli` -> `free_blocks`