2 s24xx_writetimestamp() – Sensoray 2410 API User Manual
Page 17
Advertising

Sensoray 24xx Programming Guide
13
Module-Independent Functions
5.6.2 s24xx_WriteTimestamp()
Function:
Set module’s system time.
Prototype:
BOOL s24xx_WriteTimestamp( SESSION sess, u32 *err, u32 systime );
Returns:
True if the operation was successful, otherwise False is returned and
err
will contain the associated error code.
Notes:
This function forces a module’s system clock to a desired initial time.
Example:
// Force the system clock to zero.
u32 err = ERR_NONE;
if
( !s24xx_WriteTimestamp( sess, &err, 0 ) )
printf( "Error: %s\n", s24xx_ErrorText(err) );
Argument
Description
sess
Session handle obtained from
s24xx_SessionOpen()
.
err
Pointer to error code. See Section 4.3.1 for details.
timestamp
Module’s new system time, in microseconds.
Advertising