You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int region_size[SFDP_SECTOR_MAP_MAX_REGIONS]; ///< Erase region size in bytes
62
+
uint8_t region_erase_types_bitfld[SFDP_SECTOR_MAP_MAX_REGIONS]; ///< Each Region can support a bit combination of any of the 4 Erase Types
63
+
unsignedint regions_min_common_erase_size; ///< Minimal common erase size for all regions (0 if none exists)
64
+
bd_size_t region_high_boundary[SFDP_SECTOR_MAP_MAX_REGIONS]; ///< Region high address offset boundary
65
+
int erase_type_inst_arr[SFDP_MAX_NUM_OF_ERASE_TYPES]; ///< // Up To 4 Erase Types are supported by SFDP (each with its own command Instruction and Size)
66
+
unsignedint erase_type_size_arr[SFDP_MAX_NUM_OF_ERASE_TYPES]; ///< Erase sizes for all different erase types
61
67
};
62
68
63
69
/** SFDP Parameter Table addresses and sizes */
@@ -68,23 +74,23 @@ struct sfdp_hdr_info {
68
74
69
75
/** SFDP Header */
70
76
structsfdp_hdr {
71
-
uint8_t SIG_B0; // SFDP Signature, Byte 0
72
-
uint8_t SIG_B1; // SFDP Signature, Byte 1
73
-
uint8_t SIG_B2; // SFDP Signature, Byte 2
74
-
uint8_t SIG_B3; // SFDP Signature, Byte 3
75
-
uint8_t R_MINOR; // SFDP Minor Revision
76
-
uint8_t R_MAJOR; // SFDP Major Revision
77
-
uint8_t NPH; // Number of parameter headers (0-based, 0 indicates 1 parameter header)
78
-
uint8_t ACP; // SFDP Access Protocol
77
+
uint8_t SIG_B0; ///< SFDP Signature, Byte 0
78
+
uint8_t SIG_B1; ///< SFDP Signature, Byte 1
79
+
uint8_t SIG_B2; ///< SFDP Signature, Byte 2
80
+
uint8_t SIG_B3; ///< SFDP Signature, Byte 3
81
+
uint8_t R_MINOR; ///< SFDP Minor Revision
82
+
uint8_t R_MAJOR; ///< SFDP Major Revision
83
+
uint8_t NPH; ///< Number of parameter headers (0-based, 0 indicates 1 parameter header)
84
+
uint8_t ACP; ///< SFDP Access Protocol
79
85
};
80
86
81
87
/** SFDP Parameter header */
82
88
structsfdp_prm_hdr {
83
-
uint8_t PID_LSB; // Parameter ID LSB
84
-
uint8_t P_MINOR; // Parameter Minor Revision
85
-
uint8_t P_MAJOR; // Parameter Major Revision
86
-
uint8_t P_LEN; // Parameter length in DWORDS
87
-
uint32_t DWORD2; // Parameter ID MSB + Parameter Table Pointer
89
+
uint8_t PID_LSB; ///< Parameter ID LSB
90
+
uint8_t P_MINOR; ///< Parameter Minor Revision
91
+
uint8_t P_MAJOR; ///< Parameter Major Revision
92
+
uint8_t P_LEN; ///< Parameter length in DWORDS
93
+
uint32_t DWORD2; ///< Parameter ID MSB + Parameter Table Pointer
88
94
};
89
95
90
96
/** Parse SFDP Header
@@ -120,5 +126,6 @@ int sfdp_parse_headers(Callback<int(bd_addr_t, void *, bd_size_t)> sfdp_reader,
0 commit comments