dcmi_get_card_elabel Prototype
Syntax
int dcmi_get_card_elabel (int card_id, struct dcmi_elabel_info_stru * pelabel_info)
Function
Queries the electronic label information of a chip.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
card_id |
Input |
int |
ID of the Atlas 300T training card (model 9000). Query the supported IDs by referring to dcmi_get_card_num_list Prototype. |
pelabel_info |
Output |
struct dcmi_elabel_info_stru * |
#define MAX_LENTH 256 struct dcmi_ elabel _info_stru { char product_name[MAX_LENTH]; //Board name char model[MAX_LENTH]; //Reserved char manufacturer[MAX_LENTH]; //Manufacturer char serial_number[MAX_LENTH]; //SN }; |
Return Value
Type |
Description |
---|---|
int |
Results:
|
Exception Handling
N/A
Constraints
N/A
Calling Example
...
struct dcmi_elabel_info_stru elableInfo = {0};
int ret = 0;
int card_id = 0;
memset(&elableInfo, 0, sizeof(elableInfo));
ret = dcmi_get_card_elabel(card_id, &elableInfo);
if (ret != 0)
{ //todo:records logs return ERROR;
}
...