![]() |
Energy Micro IEC60355 Library Project 1.037 GCC-Version
IEC60355 Library documentation and API
|
testing the library requires some helping functions on the hardware
showing the functionality of the tests.
More...
|
Functions | |
| static __INLINE void | util_memcpy (void *t, void *s, uint32_t byte_count) |
| public inline function referenced by BIST test A memcpy() function, if library is not used | |
testing the library requires some helping functions on the hardware
showing the functionality of the tests.
Generic functions like memcpy etc. should not be used from libraries.
| static __INLINE void util_memcpy | ( | void * | t, |
| void * | s, | ||
| uint32_t | byte_count | ||
| ) | [static] |
public inline function referenced by BIST test A memcpy() function, if library is not used
| [in,out] | t | uint8 * ;Pointer to target buffer |
| [in,out] | s | uint8 * ;Pointer to source buffer |
| [in] | byte_count | uint32 ;Byte count to copy from source to target |
Definition at line 202 of file iec60335_class_b.h.
Referenced by IEC60335_ClassB_RAMtest_BIST().
{
uint8_t * ptr_t = (uint8_t *) t;
uint8_t * ptr_s = (uint8_t *) s;
while (byte_count)
{
byte_count--;
*ptr_t = *ptr_s;
ptr_s++;
ptr_t++;
}
}
