Sensoray 2410 API Uživatelský manuál Strana 17

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 39
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 16
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.
Zobrazit stránku 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 38 39

Komentáře k této Příručce

Žádné komentáře