dcmi_get_board_info Prototype
Syntax
int dcmi_get_board_info(int card_id, int device_id, struct dsmi_board_info_stru* pboard_info)
Function
This interface is used to obtain the Atlas 300T training card (model 9000) information, including board id, pcb id, and bom id.
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. |
pboard_info |
Output |
dsmi_board_info_stru * |
struct dsmi_board_info_stru { unsigned int board_id; unsigned int pcb_id; unsigned int bom_id; unsigned int slot_id; }; NOTE:
slot_id indicates the position number of the chip on the standard card. |
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_board_info_stru board_info = {0};
ret = dcmi_get_board_info(card_id, device_id, &board_info);
if(ret != 0) {
//todo: records logs
return ret;
}
...