blob: 112f29c2d5ef7f2bd1875624a027263b0ce533e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
"""Package for handling oscilloscopes for measurement of power/EM traces."""
from typing import Type
from .base import *
has_picoscope = False
has_picosdk = False
has_chipwhisperer = False
try:
import picoscope
has_picoscope = True
except ImportError: # pragma: no cover
pass
try:
import picosdk
has_picosdk = True
except ImportError: # pragma: no cover
pass
try:
import chipwhisperer
has_chipwhisperer = True
except ImportError: # pragma: no cover
pass
PicoScope: Type[Scope]
if has_picoscope:
from .picoscope_alt import *
PicoScope = PicoScopeAlt
elif has_picosdk:
from .picoscope_sdk import *
PicoScope = PicoScopeSdk
if has_chipwhisperer:
from .chipwhisperer import *
|