Revision 2d315870 doc/classdiagrams/osal.uml

View differences:

doc/classdiagrams/osal.uml
31 31

  
32 32
!startsub ENTITIES
33 33

  
34
/' OS time type with arbitrary resolution. '/
35
$type("urt_osTime_t") {
36
    'Converts an OS time to 64 bit microsecond precise value.
37
  + {method} urtTime2Us (t : urt_osTime_t*) : uint64_t
38
    'Retrieves the current time.
39
  + {method} urtTimeNow (void) : urt_osTime_t
40
    'Increase a system time object.
41
  + {method} urtTimeAddUs (time : urt_osTime_t*, offset : uint32_t) : urt_osTime_t*
34
/' OS time measurement feature. '/
35
$group("time") {
36
  /' OS time type with arbitrary resolution. '/
37
  $type("urt_osTime_t") {
38
      'Converts an OS time to 64 bit microsecond precise value.
39
    + {method} urtTime2Us (t : urt_osTime_t*) : uint64_t
40
      'Retrieves the current time.
41
    + {method} urtTimeNow (void) : urt_osTime_t
42
      'Increase a system time object.
43
    + {method} urtTimeAddUs (time : urt_osTime_t*, offset : uint32_t) : urt_osTime_t*
44
  }
42 45
}
43 46

  
44
/' OS mutex lock interface. '/
45
$type("urt_osMutex_t") {
46
    'Initializes a urt_osMutex_t object.
47
  + {method} urtMutexInit (mutex : urt_osMutex_t*) : void
48
    'Block the thread until the mutex could be locked.
49
  + {method} urtMutexLock (mutex : urt_osMutex_t*) : void
50
    'Tries to lock the mutex, but does not block but immediately returns an indicator.
51
  + {method} urtMutexTryLock (mutex : urt_osMutex_t*) : bool
52
    'Unlocks a previously locked mutex.
53
  + {method} urtMutexUnlock (mutex : urt_osMutex_t*) : void
47
/' OS mutex lock feature. '/
48
$group("mutex") {
49
  /' OS mutex lock interface. '/
50
  $type("urt_osMutex_t") {
51
      'Initializes a urt_osMutex_t object.
52
    + {method} urtMutexInit (mutex : urt_osMutex_t*) : void
53
      'Block the thread until the mutex could be locked.
54
    + {method} urtMutexLock (mutex : urt_osMutex_t*) : void
55
      'Tries to lock the mutex, but does not block but immediately returns an indicator.
56
    + {method} urtMutexTryLock (mutex : urt_osMutex_t*) : bool
57
      'Unlocks a previously locked mutex.
58
    + {method} urtMutexUnlock (mutex : urt_osMutex_t*) : void
59
  }
54 60
}
55 61

  
56 62
/' OS condition variable feature. '/
......
261 267
  }
262 268
} /'events'/
263 269

  
264
/' Not a class/type but a set of output-related functions. '/
265
$function("urt_streams") {
266
    'Prints a formatted string to the standard output stream (stdout).
267
  + {method} urtPrintf(fmt : char*, ... ) : int
268
    'Prints a formatted string to the standard error stream (stderr).
269
  + {method} urtErrPrintf(fmt : char*, ... ) : int
270
/' OS streams feature. '/
271
$group("streams") {
272
  /' Not a class/type but a set of output-related functions. '/
273
  $function("urt_streams") {
274
      'Prints a formatted string to the standard output stream (stdout).
275
    + {method} urtPrintf(fmt : char*, ... ) : int
276
      'Prints a formatted string to the standard error stream (stderr).
277
    + {method} urtErrPrintf(fmt : char*, ... ) : int
278
  }
279
}
280

  
281
/' OS debugging feature. '/
282
$group("debug") {
283
  /' Just a function for debugging. '/
284
  $function("urt_debug") {
285
      'Checks the condition in debug mode.
286
    + {method} urtDebugAssert(condition : bool) : void
287
  }
270 288
}
271 289

  
272 290
!endsub

Also available in: Unified diff