F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Utils.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title Utils.hpp
3// \author T. Chieu
4// \brief hpp file for Utils class
5//
6// \copyright
7// Copyright (C) 2009-2022 California Institute of Technology.
8// ALL RIGHTS RESERVED. United States Government Sponsorship
9// acknowledged.
10//
11// ======================================================================
12
13#ifndef FPP_TEST_UTILS_HPP
14#define FPP_TEST_UTILS_HPP
15
16namespace FppTest {
17
18 namespace Utils {
19
20 // Returns a random nonzero U8
22
23 // Returns a random nonzero U32
24 U32 getNonzeroU32();
25
26 // Returns a random non-null char
27 char getChar();
28
29 // Populates buf with a random nonempty string of random length with max length size
30 void setString(char *buf, U32 size);
31
32 } // namespace Utils
33
34} // namespace FppTest
35
36#endif
uint8_t U8
8-bit unsigned integer
Definition BasicTypes.h:26
void setString(char *buf, U32 size)
Definition Utils.cpp:41
U32 getNonzeroU32()
Definition Utils.cpp:30
char getChar()
Definition Utils.cpp:37
U8 getNonzeroU8()
Definition Utils.cpp:23