EU1KY AA
smith.h
Go to the documentation of this file.
1 /*
2  * (c) Yury Kuchura
3  * kuchura@gmail.com
4  *
5  * This code can be used on terms of WTFPL Version 2 (http://www.wtfpl.net/).
6  */
7 
8 #ifndef SMITH_H_INCLUDED
9 #define SMITH_H_INCLUDED
10 
11 #include <stdint.h>
12 #include <complex.h>
13 #include "LCD.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 //Flags to enable Smith chart arcs and circles in the flags field
20 #define SMITH_R50 (1<<0)
21 #define SMITH_R10 (1<<1)
22 #define SMITH_R25 (1<<2)
23 #define SMITH_R100 (1<<3)
24 #define SMITH_R200 (1<<4)
25 #define SMITH_R500 (1<<5)
26 #define SMITH_Y50 (1<<6)
27 #define SMITH_J10 (1<<7)
28 #define SMITH_J25 (1<<8)
29 #define SMITH_J50 (1<<9)
30 #define SMITH_J100 (1<<10)
31 #define SMITH_J200 (1<<11)
32 #define SMITH_J500 (1<<12)
33 #define SMITH_SWR2 (1<<13)
34 #define SMITH_LABELS (1<<14)
35 
36 void SMITH_DrawGrid(int32_t x, int32_t y, int32_t r, LCDColor color, LCDColor bgcolor, uint32_t flags);
37 
38 void SMITH_DrawLabels(LCDColor color, LCDColor bgcolor, uint32_t flags);
39 
40 void SMITH_ResetStartPoint(void);
41 
42 void SMITH_DrawG(int index, float complex G, LCDColor color);
43 
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif //SMITH__INCLUDED
void SMITH_DrawG(int index, float complex G, LCDColor color)
Definition: smith.c:184
uint32_t LCDColor
LCD color type.
Definition: LCD.h:26
void SMITH_DrawGrid(int32_t x, int32_t y, int32_t r, LCDColor color, LCDColor bgcolor, uint32_t flags)
Definition: smith.c:34
void SMITH_DrawGEndMark(LCDColor color)
Definition: smith.c:209
void SMITH_ResetStartPoint(void)
Definition: smith.c:179
uint32_t color
Definition: keyboard.c:29
void SMITH_DrawLabels(LCDColor color, LCDColor bgcolor, uint32_t flags)
Definition: smith.c:106