agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
timeout.h File Reference
#include <zrtos/types.h>
Include dependency graph for timeout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zrtos_vfs_module_timeout_inode_t
 

Typedefs

typedef void(* zrtos_vfs_module_timeout_callback_t) (void *data)
 
typedef uint16_t zrtos_vfs_module_timeout_microseconds_t
 

Enumerations

enum  zrtos_vfs_module_timeout_ioctl_t {
  ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__START,
  ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__STOP,
  ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__RESET,
  ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__SET_CALLBACK
}
 

Functions

uint32_t zrtos_vfs_module_timeout__get_overflow_counter_value_divider (uint16_t prescaler)
 
uint16_t zrtos_vfs_module_timeout__get_overflow_counter_value (zrtos_vfs_module_timeout_microseconds_t us, uint16_t prescaler)
 

Typedef Documentation

◆ zrtos_vfs_module_timeout_callback_t

typedef void(* zrtos_vfs_module_timeout_callback_t) (void *data)

Definition at line 22 of file timeout.h.

◆ zrtos_vfs_module_timeout_microseconds_t

Definition at line 24 of file timeout.h.

Enumeration Type Documentation

◆ zrtos_vfs_module_timeout_ioctl_t

Enumerator
ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__START 
ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__STOP 
ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__RESET 
ZRTOS_VFS_MODULE_TIMEOUT_IOCTL__SET_CALLBACK 

Definition at line 15 of file timeout.h.

Function Documentation

◆ zrtos_vfs_module_timeout__get_overflow_counter_value()

uint16_t zrtos_vfs_module_timeout__get_overflow_counter_value ( zrtos_vfs_module_timeout_microseconds_t  us,
uint16_t  prescaler 
)

Definition at line 37 of file timeout.h.

40  {
42  prescaler
43  );
44  return (us + tmp - 1) / tmp;
45 }
uint32_t zrtos_vfs_module_timeout__get_overflow_counter_value_divider(uint16_t prescaler)
Definition: timeout.h:31
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zrtos_vfs_module_timeout__get_overflow_counter_value_divider()

uint32_t zrtos_vfs_module_timeout__get_overflow_counter_value_divider ( uint16_t  prescaler)

Definition at line 31 of file timeout.h.

33  {
34  return ((ZRTOS_ARCH__CPU_CLOCK_HZ+(prescaler*1000)-1)/prescaler/1000);
35 }
#define ZRTOS_ARCH__CPU_CLOCK_HZ
Definition: atmega2560.h:26
Here is the caller graph for this function: