EmbeddedEtcher
helpers.h File Reference

Functions, which one needs here and there for the operating system. More...

#include "stm32f10x.h"
#include <stdlib.h>
Include dependency graph for helpers.h:

Go to the source code of this file.

Functions

int osPowInt (int ibase, int iexponent)
 
uint8_t osItoa (int iint, char *iochar, size_t ibuffsize, size_t *obuffsize)
 

Detailed Description

Functions, which one needs here and there for the operating system.

Author
Maximilian Stiefel
Date
8 Jan 2018

Function Documentation

◆ osItoa()

uint8_t osItoa ( int  iint,
char *  iochar,
size_t  ibuffsize,
size_t *  obuffsize 
)

Simple Interger to ASCII conversion.

Parameters
iintInput integer.
iocharC string where the result ends up.
ibuffsizeSize of the C string for security reasons.
obuffsizeSize of the string created by the function.
Return values
1(SUCCESS) or 0 (buffer overflow).

◆ osPowInt()

int osPowInt ( int  ibase,
int  iexponent 
)
inline

Simple inline power calculation.

Parameters
ibaseInput base.
iexponentInput exponent.
Return values
Result.