![]() |
![]() |
![]() |
ntdisp reference manual | ![]() |
---|---|---|---|---|
Top | Description |
enum NtdBaud; enum NtdParity; enum NtdDataBits; enum NtdStopBits; enum NtdSoftwareFlow; enum NtdHardwareFlow; enum NtdStmCommand; enum NtdStmAnswer;
All the enumerations are available in GType notation, and so are the standard type macros.
typedef enum { NTD_BAUD_UNKNOWN = 0, NTD_BAUD_50 = 50, NTD_BAUD_75 = 75, NTD_BAUD_110 = 110, NTD_BAUD_134 = 134, NTD_BAUD_200 = 200, NTD_BAUD_300 = 300, NTD_BAUD_600 = 600, NTD_BAUD_1200 = 1200, NTD_BAUD_1800 = 1800, NTD_BAUD_2400 = 2400, NTD_BAUD_4800 = 4800, NTD_BAUD_9600 = 9600, NTD_BAUD_19200 = 19200, NTD_BAUD_38400 = 38400, NTD_BAUD_57600 = 57600, NTD_BAUD_115200 = 115200, NTD_BAUD_230400 = 230400, NTD_BAUD_460800 = 460800 } NtdBaud;
The number of symbols per second transferred, usually referred as baud rate.
0 baud | |
50 baud | |
75 baud | |
110 baud | |
134 baud | |
200 baud | |
300 baud | |
600 baud | |
1200 baud | |
1800 baud | |
2400 baud | |
4800 baud | |
9600 baud | |
19200 baud | |
38400 baud | |
57600 baud | |
115200 baud | |
230400 baud | |
460800 baud |
Since 1.0
typedef enum { NTD_PARITY_UNKNOWN, NTD_PARITY_NONE, NTD_PARITY_ODD, NTD_PARITY_EVEN, NTD_PARITY_UNCHECK } NtdParity;
The parity scheme to be used. Pretty much all modern devices use 8 data bits with no parity.
parity check undefined | |
no parity bit present | |
parity bit checked for odd parity | |
parity bit checked for even parity | |
parity bit ignored |
Since 1.0
typedef enum { NTD_DATA_BITS_UNKNOWN = 0, NTD_DATA_BITS_5 = 5, NTD_DATA_BITS_6 = 6, NTD_DATA_BITS_7 = 7, NTD_DATA_BITS_8 = 8 } NtdDataBits;
The number of data bits in each symbol. Pretty much all modern devices use 8 data bits with no parity.
number of data bits is unknown | |
5 data bits | |
6 data bits | |
7 data bits | |
8 data bits |
Since 1.0
typedef enum { NTD_STOP_BITS_UNKNOWN = 0, NTD_STOP_BITS_1 = 1, NTD_STOP_BITS_1_5 = 15, NTD_STOP_BITS_2 = 2 } NtdStopBits;
The length, in bits, of the stop signal. This is usually set to 1.
number of stop bits is unknown | |
1 stop bit | |
1.5 stop bits | |
2 stop bits |
Since 1.0
typedef enum { NTD_SOFTWARE_FLOW_NONE, NTD_SOFTWARE_FLOW_XON, NTD_SOFTWARE_FLOW_XOFF, NTD_SOFTWARE_FLOW_XON_XOFF } NtdSoftwareFlow;
Type of software flow control to use in the communication.
no software flow control | |
enable emission of XON when the input buffer is able to receive | |
enable emission of XOFF when the input buffer is becoming full | |
enable either XON and XOFF handling |
Since 1.0
typedef enum { NTD_HARDWARE_FLOW_NONE, NTD_HARDWARE_FLOW_RTS, NTD_HARDWARE_FLOW_CTS, NTD_HARDWARE_FLOW_RTS_CTS } NtdHardwareFlow;
Type of hardware flow control to use in the communication.
no hardware flow control | |
enable emission of "request to send" signal | |
enable monitor of "clear to send" signal | |
enable either RTS and CTS signal handling |
Since 1.0
typedef enum { NTD_STM_COMMAND_GET = 0, NTD_STM_COMMAND_GET_VERSION, NTD_STM_COMMAND_GET_ID, NTD_STM_COMMAND_READ, NTD_STM_COMMAND_GO, NTD_STM_COMMAND_WRITE, NTD_STM_COMMAND_ERASE, NTD_STM_COMMAND_WRITE_PROCTECT, NTD_STM_COMMAND_WRITE_UNPROCTECT, NTD_STM_COMMAND_READ_PROCTECT, NTD_STM_COMMAND_READ_UNPROCTECT } NtdStmCommand;
Map of commands availables in the NtdStm implementation of the STM32 ISP protocol.
gets the version and the allowed commands supported by the current version of the bootloader | |
gets the bootloader version and the Read Protection status of the Flash memory | |
gets the chip ID | |
reads up to 256 bytes of memory starting from an address specified by the application | |
jumps to user application code located in the internal Flash memory or in SRAM | |
writes up to 256 bytes to the RAM or Flash memory starting from an address specified by the application | |
erases from one to all the Flash memory pages | |
enables the write protection for some sectors | |
disables the write protection for all Flash memory sectors | |
enables the read protection | |
disables the read protection |
Since 1.0
typedef enum { NTD_STM_ANSWER_NONE, NTD_STM_ANSWER_ACK, NTD_STM_ANSWER_NAK, NTD_STM_ANSWER_UNKNOWN } NtdStmAnswer;
List of answer recognized by the NtdStm protocol implementation of the STM32 ISP protocol.
no answer | |
positive answer | |
negative answer | |
malformed or unrecognized answer |
Since 1.0