<commit_before>/**
 * \file
 * \brief SCPI Test:* commands
 */

#include "scpi/scpi.h"
#include "scpi-test.h"
#include "asf.h"
#include "conf_board.h"
#include "synth.h"
#include "util.h"

/* List of pins we can set or clear */
static const char *SETCLR_NAMES[] = {
    "NCS", "IOUPdate", "PWRDN", "MRST", "LED0", "LED1", "LIST", NULL
};

/* Polarity of each one (1 for invert, 2 for "this is LIST") */
static const uint8_t SETCLR_POL[] = {
    0, 0, 0, 0, 1, 1, 2 };

/* List of the actual pins */
static const int32_t SETCLR_PINS[] = {
    GPIO_SYNTH_nCS, GPIO_SYNTH_IOUPDATE, GPIO_SYNTH_PWRDN,
    GPIO_SYNTH_MRST, LED0_GPIO, LED1_GPIO };

scpi_result_t TEST_SETCLR (scpi_t *context)
{
    int32_t choice;<commit_msg>Add SYNCIO pin to Test:SET<commit_after>/**
 * \file
 * \brief SCPI Test:* commands
 */

#include "scpi/scpi.h"
#include "scpi-test.h"
#include "asf.h"
#include "conf_board.h"
#include "synth.h"
#include "util.h"

/* List of pins we can set or clear */
static const char *SETCLR_NAMES[] = {
    "NCS", "IOUPdate", "PWRDN", "MRST", "SYNCIO", "LED0", "LED1", "LIST", NULL
};

/* Polarity of each one (1 for invert, 2 for "this is LIST") */
static const uint8_t SETCLR_POL[] = {
    0, 0, 0, 0, 0, 1, 1, 2 };

/* List of the actual pins */
static const int32_t SETCLR_PINS[] = {
    GPIO_SYNTH_nCS, GPIO_SYNTH_IOUPDATE, GPIO_SYNTH_PWRDN,
    GPIO_SYNTH_MRST, GPIO_SYNTH_SYNCIO, LED0_GPIO, LED1_GPIO };

scpi_result_t TEST_SETCLR (scpi_t *context)
{
    int32_t choice;
{'fraction_non_alphanumeric': 0.15622895622895622, 'fraction_numerical': 0.024915824915824916, 'mean_word_length': 3.953333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3676356', 'n_tokens_mistral': 657, 'n_tokens_neox': 636, 'n_words': 170}