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

Function CO_setUint16

301/CO_driver.h:638–642  ·  view source on GitHub ↗

Write uint16_t value into memory buffer, see @ref CO_setUint8 */

Source from the content-addressed store, hash-verified

636
637/** Write uint16_t value into memory buffer, see @ref CO_setUint8 */
638static inline uint8_t
639CO_setUint16(void* buf, uint16_t value) {
640 (void)memmove(buf, (const void*)&value, sizeof(value));
641 return (uint8_t)(sizeof(value));
642}
643
644/** Write uint32_t value into memory buffer, see @ref CO_setUint8 */
645static inline uint8_t

Callers 2

CO_LSSmaster_ActivateBitFunction · 0.85
CO_TIME_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected