Embedded C Firmware Library : Arduino / Atmega328p
1
Register Level Embedded C Hardware Abstraction Library for AVR ATmega48A/PA/88A/PA/168A/PA/328/P or Arduino UNO/NANO/MINI
|
Library for Utility Functions. More...
#include <stddef.h>
Go to the source code of this file.
Functions | |
void | UTILS_ReverseBuffer (uint8_t *Buffer, size_t Size) |
Public Function to Reverse a Buffer of Size Length. More... | |
void | UTILS_ReverseString (char *Buffer) |
Public Function to Reverse a string Data. More... | |
uint8_t | UTILS_IntToString (int Number, char *Buffer) |
Public Function to Convert an int Data into a string Data. More... | |
uint8_t | UTILS_LongToString (long Number, char *Buffer) |
Public Function to Convert an long Data into a string Data. More... | |
uint8_t | UTILS_FloatToString (float Number, char *Buffer, uint8_t Precision) |
Public Function to Convert an float Data into a string Data. More... | |
int | UTILS_StringToInt (char *Buffer) |
Public Function to Convert an string Data into a int Data. More... | |
int | UTILS_StringToLong (char *Buffer) |
Public Function to Convert an string Data into a long Data. More... | |
Library for Utility Functions.
Created: 01-08-2020 09:20:10 PM Author : Arnab Kumar Das Website: www.ArnabKumarDas.com Microcontroller Supported: ATmega48A/PA/88A/PA/168A/PA/328/P or Arduino UNO/NANO/MINI +-\/-+ PC6 1| |28 PC5 (A5/ADC5) RXD (D0) PD0 2| |27 PC4 (A4/ADC4) TXD (D1) PD1 3| |26 PC3 (A3/ADC3) (D2) PD2 4| |25 PC2 (A2/ADC2) PWM (D3) PD3 5| |24 PC1 (A1/ADC1) XCK (D4) PD4 6| |23 PC0 (A0/ADC0) VCC 7| |22 GND GND 8| |21 AREF PB6 9| |20 AVCC PB7 10| |19 PB5 (D13) OC0B (D5) PD5 11| |18 PB4 (D12) OC0A (D6) PD6 12| |17 PB3 (D11) PWM (D7) PD7 13| |16 PB2 (D10) PWM (D8) PB0 14| |15 PB1 (D9) PWM +----+
void UTILS_ReverseBuffer | ( | uint8_t * | Buffer, |
size_t | Size | ||
) |
Public Function to Reverse a Buffer of Size Length.
[in,out] | Buffer | : Pointer to Memory Location to Store Data |
[in] | Size | : Variable to Store Length of Buffer |
void UTILS_ReverseString | ( | char * | Buffer | ) |
Public Function to Reverse a string Data.
[in,out] | Buffer | : Pointer to Memory Location to Store string Data |
uint8_t UTILS_IntToString | ( | int | Number, |
char * | Buffer | ||
) |
Public Function to Convert an int Data into a string Data.
[in] | Number | : Variable to Store int Data |
[out] | Buffer | : Pointer to Memory Location to Store string Data |
uint8_t UTILS_LongToString | ( | long | Number, |
char * | Buffer | ||
) |
Public Function to Convert an long Data into a string Data.
[in] | Number | : Variable to Store long Data |
[out] | Buffer | : Pointer to Memory Location to Store string Data |
uint8_t UTILS_FloatToString | ( | float | Number, |
char * | Buffer, | ||
uint8_t | Precision | ||
) |
Public Function to Convert an float Data into a string Data.
[in] | Number | : Variable to Store float Data |
[out] | Buffer | : Pointer to Memory Location to Store string Data |
[in] | Precision | : Variable to Store Precision of Decimal Number |
int UTILS_StringToInt | ( | char * | Buffer | ) |
Public Function to Convert an string Data into a int Data.
[in] | Buffer | : Pointer to Memory Location to Store string Data |
int UTILS_StringToLong | ( | char * | Buffer | ) |
Public Function to Convert an string Data into a long Data.
[in] | Buffer | : Pointer to Memory Location to Store string Data |