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

Go to the source code of this file.

Data Structures

struct  _zrtos_error_count_t
 

Typedefs

typedef struct _zrtos_error_count_t zrtos_error_count_t
 

Functions

bool zrtos_error_count__init (zrtos_error_count_t *thiz)
 
void zrtos_error_count__deinit (zrtos_error_count_t *thiz)
 
zrtos_error_t zrtos_error_count__add (zrtos_error_count_t *thiz, zrtos_error_t err)
 

Typedef Documentation

◆ zrtos_error_count_t

Function Documentation

◆ zrtos_error_count__add()

zrtos_error_t zrtos_error_count__add ( zrtos_error_count_t thiz,
zrtos_error_t  err 
)

Definition at line 30 of file error_count.h.

33  {
34  if(zrtos_error__is_error(err)){
35  thiz->length++;
36  }
37 
38  return ZRTOS_ERROR__SUCCESS;
39 }
bool zrtos_error__is_error(zrtos_error_t thiz)
Definition: error.h:156
Successful program execution status.
Definition: error.h:22
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zrtos_error_count__deinit()

void zrtos_error_count__deinit ( zrtos_error_count_t thiz)

Definition at line 26 of file error_count.h.

26  {
27  thiz->length = 0;
28 }
Here is the caller graph for this function:

◆ zrtos_error_count__init()

bool zrtos_error_count__init ( zrtos_error_count_t thiz)

Definition at line 20 of file error_count.h.

20  {
21  thiz->length = 0;
22 
23  return true;
24 }
Here is the caller graph for this function: