PX4 Firmware
PX4 Autopilot Software http://px4.io
|
simple data reflector for load testing terminals (especially USB) More...
#include <px4_platform_common/px4_config.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#include <systemlib/err.h>
Go to the source code of this file.
Classes | |
struct | block |
Macros | |
#define | MAX_BLOCKS 1000 |
#define | VALUE(i) ((i*7) ^ 0xDEADBEEF) |
Functions | |
__EXPORT int | reflect_main (int argc, char *argv[]) |
static void | allocate_blocks (void) |
static void | check_blocks (void) |
Variables | |
static uint32_t | nblocks |
static struct block * | blocks [MAX_BLOCKS] |
simple data reflector for load testing terminals (especially USB)
Definition in file reflect.c.
#define MAX_BLOCKS 1000 |
Definition at line 54 of file reflect.c.
Referenced by allocate_blocks().
|
static |
Definition at line 63 of file reflect.c.
References MAX_BLOCKS, nblocks, block::v, and VALUE.
Referenced by reflect_main().
|
static |
int reflect_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 92 of file reflect.c.
References allocate_blocks(), check_blocks(), OK, read(), and write().
|
static |
|
static |
Definition at line 55 of file reflect.c.
Referenced by allocate_blocks(), at24c_bread(), at24c_bwrite(), at24c_erase(), check_blocks(), and mtd_main().