SparkFun Toolkit  v1.0.5-6-g34ffa30
Core Functionality Library
Loading...
Searching...
No Matches
sfToolkit.cpp File Reference

Implementation file for the SparkFun Toolkit. More...

#include "sfToolkit.h"
Include dependency graph for sfToolkit.cpp:

Functions

sfTkByteOrder sftk_system_byteorder (void)
 C function - Runtime check for system byte order. More...
 
uint8_t sftk_byte_swap (uint8_t i)
 to catch 8 bit calls for byte swap More...
 
uint16_t sftk_byte_swap (uint16_t i)
 function - Byte swap a 16 bit value More...
 
uint32_t sftk_byte_swap (uint32_t i)
 function - Byte swap a 32 bit value More...
 
int16_t sftk_byte_swap (int16_t i)
 function - Byte swap an int 16 More...
 
int32_t sftk_byte_swap (int32_t i)
 function - Byte swap an int 32 More...
 

Detailed Description

Implementation file for the SparkFun Toolkit.

This file contains the implementation of various utility functions for the SparkFun Toolkit library.

Author
SparkFun Electronics
Date
2024-2025

SPDX-License-Identifier: MIT

Function Documentation

◆ sftk_byte_swap() [1/5]

int16_t sftk_byte_swap ( int16_t  i)

function - Byte swap an int 16

◆ sftk_byte_swap() [2/5]

int32_t sftk_byte_swap ( int32_t  i)

function - Byte swap an int 32

◆ sftk_byte_swap() [3/5]

uint16_t sftk_byte_swap ( uint16_t  i)

function - Byte swap a 16 bit value

◆ sftk_byte_swap() [4/5]

uint32_t sftk_byte_swap ( uint32_t  i)

function - Byte swap a 32 bit value

◆ sftk_byte_swap() [5/5]

uint8_t sftk_byte_swap ( uint8_t  i)

to catch 8 bit calls for byte swap

◆ sftk_system_byteorder()

sfTkByteOrder sftk_system_byteorder ( void  )

C function - Runtime check for system byte order.