AT91SAM7S/src/armscope_cmd.h File Reference
Set of command values shared between armscope firmware and dll.
More...
|
Enumerations |
enum | E_COMMAND_TYPE {
CMD_SET_SAMPLING_FREQ = 0x01,
CMD_SET_TRIGGER_LEVEL = 0x03,
CMD_SET_SENSITIVITY = 0x04,
CMD_FUNCTION = 0x05,
CMD_SET_CAPTURE_BUFFER_SIZE = 0x06
} |
| First byte of command. More...
|
enum | E_SUBCOMMAND_FUNCTION_TYPE {
CMD_FUNCTION_IDENTIFY = 0x08,
CMD_FUNCTION_COUPLING_DC = 0x01,
CMD_FUNCTION_COUPLING_AC = 0x02,
CMD_FUNCTION_TRIGGER_SLOPE_FALLING = 0x04,
CMD_FUNCTION_TRIGGER_SLOPE_RAISING = 0x05,
CMD_FUNCTION_TRIGGER_MANUAL = 0x06,
CMD_FUNCTION_TRIGGER_EXECUTE = 0x07,
CMD_FUNCTION_FETCH_DATA = 0x09
} |
| Second byte of command if first byte is CMD_FUNCTION. More...
|
Detailed Description
Set of command values shared between armscope firmware and dll.
Each command consists of E_COMMAND_TYPE byte, numerical value or E_SUBCOMMAND_FUNCTION_TYPE byte and 0x00 byte (end of cmd).
Enumeration Type Documentation
First byte of command.
- Enumerator:
-
CMD_SET_SAMPLING_FREQ |
Set sampling frequency to E_ARMSCOPE_SAMPLING_MAX/(2^(command value)) (lower value -> higher frequency). |
CMD_SET_TRIGGER_LEVEL |
Set trigger level (value is unsigned char). |
CMD_SET_SENSITIVITY |
Set analog front-end sensitivity.
Accepted values 0x01..0x06, lower value means higher sensitivity. Values are: 3.3V/div, 1.1V/div, 0.37V/div, 0.12V/div, 0.04V/div and 0.013V/div. Range is -5 div to +5 div. |
CMD_FUNCTION |
Send special command (E_SUBCOMMAND_FUNCTION_TYPE). |
CMD_SET_CAPTURE_BUFFER_SIZE |
Set capcure buffer size that is collected every trigger happens.
Values are: 512 samples for 0x00, 1024 samples, 2048 samples, 4096 samples, 8192 samples and 14336 samples for 0x05 |
Second byte of command if first byte is CMD_FUNCTION.
- Enumerator:
-
CMD_FUNCTION_IDENTIFY |
Request to send identify string (basically "VDSO" + compilation date). |
CMD_FUNCTION_COUPLING_DC |
Set analog front-end coupling to direct current path. |
CMD_FUNCTION_COUPLING_AC |
Set analog front-end coupling to AC. |
CMD_FUNCTION_TRIGGER_SLOPE_FALLING |
Set internal trigger to react on falling slope. |
CMD_FUNCTION_TRIGGER_SLOPE_RAISING |
Set internal trigger to react on raising slope. |
CMD_FUNCTION_TRIGGER_MANUAL |
Turn off internal trigger. |
CMD_FUNCTION_TRIGGER_EXECUTE |
Request immediate triggering. |
CMD_FUNCTION_FETCH_DATA |
Request fetching of data buffer. Special frame is sent if device was not triggered yet. |