Home
last modified time | relevance | path

Searched refs:mraa_result_t (Results 1 – 25 of 65) sorted by relevance

123

/hardware/bsp/intel/peripheral/libmraa/include/
Dmraa_adv_func.h35 mraa_result_t (*gpio_init_internal_replace) (mraa_gpio_context dev, int pin);
36 mraa_result_t (*gpio_init_pre) (int pin);
37 mraa_result_t (*gpio_init_post) (mraa_gpio_context dev);
39 mraa_result_t (*gpio_close_pre) (mraa_gpio_context dev);
41 mraa_result_t (*gpio_mode_replace) (mraa_gpio_context dev, mraa_gpio_mode_t mode);
42 mraa_result_t (*gpio_mode_pre) (mraa_gpio_context dev, mraa_gpio_mode_t mode);
43 mraa_result_t (*gpio_mode_post) (mraa_gpio_context dev, mraa_gpio_mode_t mode);
45 mraa_result_t (*gpio_edge_mode_replace) (mraa_gpio_context dev, mraa_gpio_edge_t mode);
47 mraa_result_t (*gpio_dir_replace) (mraa_gpio_context dev, mraa_gpio_dir_t dir);
48 mraa_result_t (*gpio_dir_pre) (mraa_gpio_context dev, mraa_gpio_dir_t dir);
[all …]
Dmraa_internal.h47 mraa_result_t mraa_setup_mux_mapped(mraa_pin_t meta);
75 mraa_result_t mraa_iio_detect();
/hardware/bsp/intel/peripheral/libmraa/api/mraa/
Diio.h82 mraa_result_t mraa_iio_trigger_buffer(mraa_iio_context dev, void (*fptr)(char* data), void* args);
94 mraa_result_t mraa_iio_read_float(mraa_iio_context dev, const char* filename, float* data);
96 mraa_result_t mraa_iio_read_int(mraa_iio_context dev, const char* filename, int* data);
98 mraa_result_t mraa_iio_read_string(mraa_iio_context dev, const char* filename, char* data, int max_…
100 mraa_result_t mraa_iio_write_float(mraa_iio_context dev, const char* attr_chan, const float data);
102 mraa_result_t mraa_iio_write_int(mraa_iio_context dev, const char* attr_chan, const int data);
104 mraa_result_t mraa_iio_write_string(mraa_iio_context dev, const char* attr_chan, const char* data);
106 mraa_result_t mraa_iio_get_channel_data(mraa_iio_context dev);
108 mraa_result_t mraa_iio_get_event_data(mraa_iio_context dev);
110 mraa_result_t mraa_iio_event_poll(mraa_iio_context dev, struct iio_event_data* data);
[all …]
Dpwm.h76 mraa_result_t mraa_pwm_write(mraa_pwm_context dev, float percentage);
95 mraa_result_t mraa_pwm_period(mraa_pwm_context dev, float seconds);
104 mraa_result_t mraa_pwm_period_ms(mraa_pwm_context dev, int ms);
113 mraa_result_t mraa_pwm_period_us(mraa_pwm_context dev, int us);
122 mraa_result_t mraa_pwm_pulsewidth(mraa_pwm_context dev, float seconds);
131 mraa_result_t mraa_pwm_pulsewidth_ms(mraa_pwm_context dev, int ms);
140 mraa_result_t mraa_pwm_pulsewidth_us(mraa_pwm_context dev, int us);
150 mraa_result_t mraa_pwm_enable(mraa_pwm_context dev, int enable);
159 mraa_result_t mraa_pwm_owner(mraa_pwm_context dev, mraa_boolean_t owner);
167 mraa_result_t mraa_pwm_close(mraa_pwm_context dev);
[all …]
Dgpio.h116 mraa_result_t mraa_gpio_edge_mode(mraa_gpio_context dev, mraa_gpio_edge_t mode);
128 mraa_result_t mraa_gpio_isr(mraa_gpio_context dev, mraa_gpio_edge_t edge, void (*fptr)(void*), void…
137 mraa_result_t mraa_gpio_isr_exit(mraa_gpio_context dev);
146 mraa_result_t mraa_gpio_mode(mraa_gpio_context dev, mraa_gpio_mode_t mode);
155 mraa_result_t mraa_gpio_dir(mraa_gpio_context dev, mraa_gpio_dir_t dir);
164 mraa_result_t mraa_gpio_close(mraa_gpio_context dev);
182 mraa_result_t mraa_gpio_write(mraa_gpio_context dev, int value);
191 mraa_result_t mraa_gpio_owner(mraa_gpio_context dev, mraa_boolean_t owner);
200 mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context dev, mraa_boolean_t mmap);
Dspi.h93 mraa_result_t mraa_spi_mode(mraa_spi_context dev, mraa_spi_mode_t mode);
102 mraa_result_t mraa_spi_frequency(mraa_spi_context dev, int hz);
154 mraa_result_t mraa_spi_transfer_buf(mraa_spi_context dev, uint8_t* data, uint8_t* rxbuf, int length…
166 mraa_result_t mraa_spi_transfer_buf_word(mraa_spi_context dev, uint16_t* data, uint16_t* rxbuf, int…
175 mraa_result_t mraa_spi_lsbmode(mraa_spi_context dev, mraa_boolean_t lsb);
184 mraa_result_t mraa_spi_bit_per_word(mraa_spi_context dev, unsigned int bits);
192 mraa_result_t mraa_spi_stop(mraa_spi_context dev);
Di2c.h78 mraa_result_t mraa_i2c_frequency(mraa_i2c_context dev, mraa_i2c_mode_t mode);
138 mraa_result_t mraa_i2c_write(mraa_i2c_context dev, const uint8_t* data, int length);
147 mraa_result_t mraa_i2c_write_byte(mraa_i2c_context dev, const uint8_t data);
157 mraa_result_t mraa_i2c_write_byte_data(mraa_i2c_context dev, const uint8_t data, const uint8_t comm…
167 mraa_result_t mraa_i2c_write_word_data(mraa_i2c_context dev, const uint16_t data, const uint8_t com…
178 mraa_result_t mraa_i2c_address(mraa_i2c_context dev, uint8_t address);
186 mraa_result_t mraa_i2c_stop(mraa_i2c_context dev);
Duart.h73 mraa_result_t mraa_uart_flush(mraa_uart_context dev);
84 mraa_result_t mraa_uart_set_baudrate(mraa_uart_context dev, unsigned int baud);
97 mraa_result_t mraa_uart_set_mode(mraa_uart_context dev, int bytesize, mraa_uart_parity_t parity, in…
107 mraa_result_t mraa_uart_set_flowcontrol(mraa_uart_context dev, mraa_boolean_t xonxoff, mraa_boolean…
119 mraa_result_t mraa_uart_set_timeout(mraa_uart_context dev, int read, int write, int interchar);
136 mraa_result_t mraa_uart_stop(mraa_uart_context dev);
Dcommon.h42 mraa_result_t res; \
74 mraa_result_t mraa_init();
79 mraa_result_t mraa_init() __attribute__((constructor));
136 mraa_result_t mraa_set_log_level(int level);
180 void mraa_result_print(mraa_result_t result);
Diio.hpp136 mraa_result_t res = mraa_iio_read_int(m_iio, attributeName.c_str(), &value); in readInt()
158 mraa_result_t res = mraa_iio_read_float(m_iio, attributeName.c_str(), &value); in readFloat()
178 mraa_result_t res = mraa_iio_write_int(m_iio, attributeName.c_str(), value); in writeInt()
198 mraa_result_t res = mraa_iio_write_float(m_iio, attributeName.c_str(), value); in writeFloat()
217 mraa_result_t res = mraa_iio_event_setup_callback(m_iio, private_event_handler, handler); in registerEventHandler()
Daio.h84 mraa_result_t mraa_aio_close(mraa_aio_context dev);
94 mraa_result_t mraa_aio_set_bit(mraa_aio_context dev, int bits);
/hardware/bsp/intel/peripheral/libupm/src/adc121c021/
Dadc121c021.h115 mraa_result_t writeByte(uint8_t reg, uint8_t byte);
124 mraa_result_t writeWord(uint8_t reg, uint16_t word);
249 mraa_result_t setAlertLowLimit(uint16_t limit);
259 mraa_result_t setAlertHighLimit(uint16_t limit);
271 mraa_result_t setHysteresis(uint16_t limit);
296 mraa_result_t clearHighestConversion();
303 mraa_result_t clearLowestConversion();
Dadc121c021.cxx48 mraa_result_t ret = mraa_i2c_address(m_i2c, m_addr); in ADC121C021()
65 mraa_result_t ADC121C021::writeByte(uint8_t reg, uint8_t byte) in writeByte()
70 mraa_result_t ADC121C021::writeWord(uint8_t reg, uint16_t word) in writeWord()
216 mraa_result_t ADC121C021::setAlertLowLimit(uint16_t limit) in setAlertLowLimit()
225 mraa_result_t ADC121C021::setAlertHighLimit(uint16_t limit) in setAlertHighLimit()
234 mraa_result_t ADC121C021::setHysteresis(uint16_t limit) in setHysteresis()
253 mraa_result_t ADC121C021::clearHighestConversion() in clearHighestConversion()
258 mraa_result_t ADC121C021::clearLowestConversion() in clearLowestConversion()
/hardware/bsp/intel/peripheral/libmraa/src/pwm/
Dpwm.c50 static mraa_result_t
54 mraa_result_t result = dev->advance_func->pwm_period_replace(dev, period); in mraa_pwm_write_period()
80 static mraa_result_t
236 mraa_result_t ret = plat->adv_func->pwm_init_post(pret); in mraa_pwm_init()
285 mraa_result_t
310 mraa_result_t
316 mraa_result_t
322 mraa_result_t
332 mraa_result_t
338 mraa_result_t
[all …]
/hardware/bsp/intel/peripheral/libupm/src/tm1637/
Dtm1637.h102 mraa_result_t write(uint8_t *digits);
109 mraa_result_t write(int d, ...);
117 mraa_result_t writeAt(int index, char symbol);
124 mraa_result_t write(std::string digits);
/hardware/bsp/intel/peripheral/libmraa/src/iio/
Diio.c73 mraa_result_t
214 mraa_result_t
218 mraa_result_t result = mraa_iio_read_string(dev, attr_name, buf, MAX_SIZE-1); in mraa_iio_read_float()
227 mraa_result_t
231 mraa_result_t result = mraa_iio_read_string(dev, attr_name, buf, MAX_SIZE-1); in mraa_iio_read_int()
239 mraa_result_t
243 mraa_result_t result = MRAA_ERROR_UNSPECIFIED; in mraa_iio_read_string()
256 mraa_result_t
264 mraa_result_t
272 mraa_result_t
[all …]
/hardware/bsp/intel/peripheral/libupm/src/grove/
Dgrove.h92 mraa_result_t write(int value);
98 mraa_result_t off();
104 mraa_result_t on();
139 mraa_result_t on();
146 mraa_result_t off();
Dgrove.cxx54 mraa_result_t GroveLed::write(int value) in write()
62 mraa_result_t GroveLed::on() in on()
67 mraa_result_t GroveLed::off() in off()
90 mraa_result_t GroveRelay::on() in on()
95 mraa_result_t GroveRelay::off() in off()
/hardware/bsp/intel/peripheral/libmraa/src/gpio/
Dgpio.c42 static mraa_result_t
61 mraa_result_t status = MRAA_SUCCESS; in mraa_gpio_init_internal()
172 mraa_result_t ret = r->advance_func->gpio_init_post(r); in mraa_gpio_init()
188 static mraa_result_t
274 mraa_result_t ret; in mraa_gpio_interrupt_handler()
408 mraa_result_t
457 mraa_result_t
486 mraa_result_t
489 mraa_result_t ret = MRAA_SUCCESS; in mraa_gpio_isr_exit()
530 mraa_result_t
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/usb/
Dftdi_ft4222.c55 mraa_result_t
58 mraa_result_t mraaStatus = MRAA_ERROR_NO_RESOURCES; in mraa_ftdi_ft4222_init()
155 mraa_result_t
235 static mraa_result_t
259 static mraa_result_t
326 static mraa_result_t
352 static mraa_result_t
370 static mraa_result_t
417 static mraa_result_t
425 static mraa_result_t
[all …]
/hardware/bsp/intel/peripheral/libmraa/include/usb/
Dftdi_ft4222.h33 mraa_result_t mraa_ftdi_ft4222_init();
34 mraa_result_t mraa_ftdi_ft4222_get_version(unsigned int* versionChip, unsigned int* versionLib);
/hardware/bsp/intel/peripheral/libmraa/src/aio/
Daio.c37 static mraa_result_t
93 mraa_result_t pre_ret = (dev->advance_func->aio_init_pre(aio)); in mraa_aio_init()
127 mraa_result_t ret = dev->advance_func->aio_init_post(dev); in mraa_aio_init()
195 mraa_result_t
207 mraa_result_t
/hardware/bsp/intel/peripheral/libmraa/src/spi/
Dspi.c116 mraa_result_t ret = plat->adv_func->spi_init_post(dev); in mraa_spi_init()
170 mraa_result_t
201 mraa_result_t
215 mraa_result_t
235 mraa_result_t
290 mraa_result_t
309 mraa_result_t
352 mraa_result_t
/hardware/bsp/intel/peripheral/libmraa/src/i2c/
Di2c.c74 mraa_result_t status = MRAA_SUCCESS; in mraa_i2c_init_internal()
193 mraa_result_t
281 mraa_result_t
304 mraa_result_t
318 mraa_result_t
332 mraa_result_t
346 mraa_result_t
366 mraa_result_t
/hardware/bsp/intel/peripheral/libmraa/examples/
Dmraa-gpio.c103 mraa_result_t
121 mraa_result_t
148 mraa_result_t
153 mraa_result_t status = mraa_gpio_dir(gpio_info->context, MRAA_GPIO_IN); in gpio_isr_start()
164 mraa_result_t

123