Exemplo n.º 1
0
// Set the state of a all 32 outputs in the mask to on or off
void bcm2835_gpio_write_multi(uint32_t mask, uint8_t on)
{
    if (on)
	bcm2835_gpio_set_multi(mask);
    else
	bcm2835_gpio_clr_multi(mask);
}
Exemplo n.º 2
0
// Set the state of a all 32 outputs in the mask to the values in value
void bcm2835_gpio_write_mask(uint32_t value, uint32_t mask)
{
    bcm2835_gpio_set_multi(value & mask);
    bcm2835_gpio_clr_multi((~value) & mask);
}
//void bcm2835_gpio_set_multi(uint32_t mask);
/// Call bcm2835_gpio_set_multi with 1 parameter
/// \par            Refer
/// \par            Modify
void ope_gpio_set_multi(void)
{
    get_byte_code();
    bcm2835_gpio_set_multi( *((uint8_t *)(buff+1)) );
//    set_ope_code( OPE_GPIO_SET_MULTI );
}