Exemple #1
0
/**
 * SCPI pin action: get
 */
scpi_result_t pin_action_get (uint32_t pin, uint32_t flags, const char *name)
{
    (void) flags;
    (void) name;
    printf ("%d\r\n", pio_get_pin_value(pin) ? 1 : 0);
    return SCPI_RES_OK;
}
bool cph_deca_isr_is_detected(void) {
	return pio_get_pin_value(DW_IRQ_IDX);
}