Skip to content

Commit cc6f0e8

Browse files
committed
samples: drivers: jesd216: Print dw19 octal enable requirement
If supported, parse dw19 and print out the octal enable requirement. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent e4f77ac commit cc6f0e8

File tree

1 file changed

+13
-0
lines changed
  • samples/drivers/jesd216/src

1 file changed

+13
-0
lines changed

samples/drivers/jesd216/src/main.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,18 @@ static void summarize_dw16(const struct jesd216_param_header *php,
243243
dw16.sr1_interface);
244244
}
245245

246+
static void summarize_dw19(const struct jesd216_param_header *php,
247+
const struct jesd216_bfp *bfp)
248+
{
249+
struct jesd216_bfp_dw19 dw19;
250+
251+
if (jesd216_bfp_decode_dw19(php, bfp, &dw19) != 0) {
252+
return;
253+
}
254+
255+
printf("Octal Enable Requirement: %u\n", dw19.octal_enable_req);
256+
}
257+
246258
/* Indexed from 1 to match JESD216 data word numbering */
247259
static const dw_extractor extractor[] = {
248260
[1] = summarize_dw1,
@@ -253,6 +265,7 @@ static const dw_extractor extractor[] = {
253265
[14] = summarize_dw14,
254266
[15] = summarize_dw15,
255267
[16] = summarize_dw16,
268+
[19] = summarize_dw19,
256269
};
257270

258271
static void dump_bfp(const struct jesd216_param_header *php,

0 commit comments

Comments
 (0)