dcmi_get_device_die Prototype
Syntax
int dcmi_get_device_die (int card_id, int device_id, struct dsmi_soc_die_stru * pdevice_die)
Function
Queries the DIE ID of a specified 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. |
device_id |
Input |
int |
Chip ID. The value is 0 (there is only one chip). Query the actually supported range by referring to dcmi_get_device_num_in_card Prototype. |
pdevice_die |
Output |
struct dsmi_soc_die_stru * |
DIE information. The definition is as follows: unsigned int *pdevice_die struct dsmi_soc_die_stru{ unsigned int soc_die[5]; } |
Return Value
Type |
Description |
---|---|
int |
Results:
|
Exception Handling
N/A
Constraints
N/A
Calling Example
...
int ret = 0;
int card_id = 0x56;
int device_id = 0;
struct dsmi_soc_die_stru pdevice_die = {0};
ret = dcmi_get_device_die(card_id, device_id, &pdevice_die);
if(ret != 0) {
//todo: records logs
return ret;
}
...