MCPcopy Create free account
hub / github.com/CANopenNode/CANopenNode / CO_setUint8

Function CO_setUint8

301/CO_driver.h:631–635  ·  view source on GitHub ↗

* Write uint8_t value into memory buffer * * @param buf Memory buffer. * @param value Value to be written into buf. * * @return number of bytes written. */

Source from the content-addressed store, hash-verified

629 * @return number of bytes written.
630 */
631static inline uint8_t
632CO_setUint8(void* buf, uint8_t value) {
633 (void)memmove(buf, (const void*)&value, sizeof(value));
634 return (uint8_t)(sizeof(value));
635}
636
637/** Write uint16_t value into memory buffer, see @ref CO_setUint8 */
638static inline uint8_t

Callers 1

OD_read_1003Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected