Spacecraft Control Framework
1.0
Spacecraft Control Library
src
binary_gray_code.h
Go to the documentation of this file.
1
/*
2
* binary_gray_code.h
3
*
4
* CVS Revision: $Revision: 1.1 $
5
*
6
* Programmer(s): Michael Paluszek
7
*
8
* Copyright (c) 2005, Princeton Satellite Systems. All rights reserved.
9
*
10
*/
11
18
#ifndef BINARY_GRAY_CODE
19
#define BINARY_GRAY_CODE
20
22
unsigned
short
GrayToBinary
(
unsigned
short
x );
24
unsigned
short
BinaryToGray
(
unsigned
short
x );
25
26
#endif
BinaryToGray
unsigned short BinaryToGray(unsigned short x)
Converts binary to gray code.
Definition:
sc_utility.cc:45
GrayToBinary
unsigned short GrayToBinary(unsigned short x)
Converts gray code to binary.
Definition:
sc_utility.cc:23
Generated on Fri Feb 18 2022 13:58:42 for Spacecraft Control Framework by
1.9.2