/* Returns 1 if one or more PIO of the given Pin data to be driven on the I/O line level; otherwise returns 0.  */
unsigned char PIO_GetOutputDataStatus(const Pin *pin)
/* Returns 1 if one or more PIO of the given Pin data to be driven on the I/O line level; otherwise returns 0.  */
unsigned char PIO_GetOutputDataStatus(const Pin *pin)
{
    if ((READ(pin->pio, PIO_ODSR) & pin->mask) == 0) {
        return 0;
    }
    else {
        return 1;
    }
}