dcmi_get_system_time Prototype
Syntax
int dcmi_get_system_time(int card_id, int device_id, unsigned int *time)
Function
This interface is used to query the system time 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 todcmi_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. |
time |
Output |
unsigned int * |
the number of seconds from 00:00:00, January 1,1970. |
Return Value
Type |
Description |
---|---|
int |
Results:
|
Exception Handling
N/A
Constraints
N/A
Calling Example
int ret = 0;
unsigned int time
int card_id = 0x3;
int device_id = 0;
ret = dcmi_get_system_time(card_id, device_id, &time);
if(ret != 0) {
//todo: records logs
return ret;
}
...