pdcomm_gem_formatted_program_selection_snapshot_command_info
Function
Reads the parameter count and CCODE format of one selected command.
PdcommStatus pdcomm_gem_formatted_program_selection_snapshot_command_info(const PdcommGemFormattedProgramSelectionSnapshot *snapshot, size_t command_index, size_t *parameter_count, uint8_t *code_format)Parameters
| Name | Description |
|---|---|
snapshot | Live snapshot that contains a program. |
command_index | Zero-based command index, less than command_count. |
parameter_count | Receives the number of PPARM items; set to 0 first. |
code_format | Receives the CCODE format: #PDCOMM_SECS_ASCII, #PDCOMM_SECS_U1, #PDCOMM_SECS_U2, #PDCOMM_SECS_U4, or #PDCOMM_SECS_U8; set to 0 first. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when a pointer is NULL; #PDCOMM_INVALID_STATE when the snapshot has no selected program; #PDCOMM_OUT_OF_RANGE when command_index is out of range; #PDCOMM_INTERNAL_ERROR when a panic was contained.