McMajan Library Pack  v 2.00
Improve your Arduino !
Ss_FastArduino.cpp File Reference
#include <Ss_FastArduino.h>
+ Include dependency graph for Ss_FastArduino.cpp:

Go to the source code of this file.

Functions

void f1_FastDigitalPulse (uint8_t pin, uint8_t val)
 
void LPulse (uint8_t pin)
 Set digital pin to low, then to high. More...
 
void HPulse (uint8_t pin)
 Set digital pin to high, then to low. More...
 
bool GetBitN (uint8_t *buff, unsigned int Fbit)
 This function return n bit from a buffer. More...
 
void SetBitN (uint8_t *buff, unsigned int Fbit, bool val)
 Questa funzione setta l'n-esimo bit del buffer buff (0-n) (il singolo byte è riempito da destra a sinistra) con il valore val (0 o 1) More...
 
int Mc_FreeRam ()
 Calculate free RAM This function Works only on AVR microcontrollers. More...
 
void Mc_SetNoisyArray (float *arr, int campioni, float media, float spread)
 This fill a buffer using random values. More...
 

Function Documentation

§ f1_FastDigitalPulse()

void f1_FastDigitalPulse ( uint8_t  pin,
uint8_t  val 
)

Definition at line 54 of file Ss_FastArduino.cpp.

§ GetBitN()

bool GetBitN ( uint8_t *  buff,
unsigned int  Fbit 
)

This function return n bit from a buffer.

Parameters
buffis the buffer
Fbitis the bit you want to extract (for example bit 54 from a char buffer)
Returns
true or false

Definition at line 88 of file Ss_FastArduino.cpp.

§ HPulse()

void HPulse ( uint8_t  pin)

Set digital pin to high, then to low.

Parameters
pinis the digital pin to send the pulse.

Definition at line 76 of file Ss_FastArduino.cpp.

+ Here is the caller graph for this function:

§ LPulse()

void LPulse ( uint8_t  pin)

Set digital pin to low, then to high.

Parameters
pinis the digital pin to send the pulse.

Definition at line 66 of file Ss_FastArduino.cpp.

§ Mc_FreeRam()

int Mc_FreeRam ( )

Calculate free RAM This function Works only on AVR microcontrollers.

Returns
bytes of free RAM

Definition at line 121 of file Ss_FastArduino.cpp.

§ Mc_SetNoisyArray()

void Mc_SetNoisyArray ( float *  arr,
int  campioni,
float  media,
float  spread 
)

This fill a buffer using random values.

Parameters
arris a float array pointer
campioniis the number of element you want to fill
mediais the mean value of random values
speredis the maximum spread value from mean value

Definition at line 158 of file Ss_FastArduino.cpp.

§ SetBitN()

void SetBitN ( uint8_t *  buff,
unsigned int  Fbit,
bool  val 
)

Questa funzione setta l'n-esimo bit del buffer buff (0-n) (il singolo byte è riempito da destra a sinistra) con il valore val (0 o 1)

This function sets n bit in a buffer

Parameters
buffis the buffer
Fbitis the bit you want to set (for example set bit 54 to tue)
valtrue or false

Definition at line 106 of file Ss_FastArduino.cpp.