Energy Micro IEC60355 Library Project 1.037 GCC-Version
IEC60355 Library documentation and API

Tools to test the library

testing the library requires some helping functions on the hardware
showing the functionality of the tests. More...

Collaboration diagram for Tools to test the library:

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

Detailed Description

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.


Function Documentation

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

Parameters:
[in,out]tuint8 * ;Pointer to target buffer
[in,out]suint8 * ;Pointer to source buffer
[in]byte_countuint32 ;Byte count to copy from source to target
Remarks:
Does not detect overlapping source/target pointers

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++;
  }
}

Here is the caller graph for this function: