dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unittest.cpp File Reference
#include "gtest/gtest.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "pios_dsm_priv.h"
#include "../../PiOS/Common/pios_dsm.c"

Go to the source code of this file.

Data Structures

class  DsmTest
 

Functions

int PIOS_DSM_Reset (struct pios_dsm_dev *dsm_dev)
 
int PIOS_DSM_GetResolution (struct pios_dsm_dev *dsm_dev)
 
void verify_channels (uint16_t *c1, uint16_t *c2)
 
 TEST_F (DsmTest, Invalid)
 
 TEST_F (DsmTest, DSM_10BIT)
 
 TEST_F (DsmTest, DSM_11BIT)
 
 TEST_F (DsmTest, DX7_DSM2_11ms_odd)
 
 TEST_F (DsmTest, DX7_DSM2_11ms_even)
 
 TEST_F (DsmTest, DX7_DSM2_22ms_odd)
 
 TEST_F (DsmTest, DX7_DSM2_22ms_even)
 
 TEST_F (DsmTest, DX7_DSMX_11ms_odd)
 
 TEST_F (DsmTest, DX7_DSMX_11ms_even)
 
 TEST_F (DsmTest, DX7_DSMX_22ms_odd)
 
 TEST_F (DsmTest, DX7_DSMX_22ms_even)
 
 TEST_F (DsmTest, DX18_DSM2_2048_odd)
 
 TEST_F (DsmTest, DX18_DSM2_2048_even)
 
 TEST_F (DsmTest, DX18_DSM2_1024_odd)
 
 TEST_F (DsmTest, DX18_DSM2_1024_even)
 
 TEST_F (DsmTest, DX18_DSM2_XPlus_1024_odd)
 
 TEST_F (DsmTest, DX18_DSM2_XPlus_1024_even)
 
 TEST_F (DsmTest, DX18_DSMX_22ms_odd)
 
 TEST_F (DsmTest, DX18_DSMX_22ms_even)
 
 TEST_F (DsmTest, DX18_DSMX_11ms_odd)
 
 TEST_F (DsmTest, DX18_DSMX_11ms_even)
 
 TEST_F (DsmTest, DX18_DSMX_22ms_XPlus_odd)
 
 TEST_F (DsmTest, DX18_DSMX_22ms_XPlus_even)
 
 TEST_F (DsmTest, DX7_DSM2_10BIT)
 

Variables

const int idx11 [] = {1,5,2,3,0,7,6,1,5,2,3,4,8,9}
 
const int idx10 [] = {1,5,4,2,6,0,3,1,5,4,2,6,0,3}