CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
cid.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
6
7#ifndef CARDSIGHT_MMC_CID_H
8#define CARDSIGHT_MMC_CID_H
9
10#include <stdint.h>
11
25
32void mmc_decode_cid(const uint8_t cid[16], struct mmc_cid_identity *identity);
33
34#endif /* CARDSIGHT_MMC_CID_H */
void mmc_decode_cid(const uint8_t cid[16], struct mmc_cid_identity *identity)
Decode a raw CID register into identity fields.
Friendly fields decoded from the card identification register.
Definition cid.h:15
uint16_t manufacture_year
Definition cid.h:22
uint8_t product_revision_minor
Definition cid.h:20
uint8_t product_revision_major
Definition cid.h:19
char oem_id[3]
Definition cid.h:17
uint8_t manufacturer_id
Definition cid.h:16
uint8_t manufacture_month
Definition cid.h:23
char product_name[6]
Definition cid.h:18
uint32_t serial_number
Definition cid.h:21