File libservo.c


Included Files


Global Function editPwmSrvAng()

size_t editPwmSrvAng ( u_char id, __uint16_t angle, __uint16_t time, size_t bufLen, u_char buf[bufLen] )
u_char id
dev ID
__uint16_t angle
angle(deci-deg)
__uint16_t time
time(centi-sec)
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13()

Global Function editSrvAng()

size_t editSrvAng ( _Bool isLong, u_char id, __uint16_t angle, __uint16_t time, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID.
__uint16_t angle
angle(deci-deg)
__uint16_t time
time(centi-sec)
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  set485devShort() libutil.c
  __assert13(), memcpy()

Global Function editSrvCmgn()

size_t editSrvCmgn ( _Bool isLong, u_char id, u_char mgn, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
u_char mgn
compliance mergin
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13(), memcpy()

Global Function editSrvCslp()

size_t editSrvCslp ( _Bool isLong, u_char id, u_char slp, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
u_char slp
compliance slope
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13(), memcpy()

Global Function editSrvParams()

size_t editSrvParams ( _Bool isLong, u_char id, u_char mgn, u_char slp, u_short pnc, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
u_char mgn
compliance mergin
u_char slp
compliance slope
u_short pnc
punch
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  set485devShort() libutil.c
  __assert13(), memcpy()

Global Function editSrvPunch()

size_t editSrvPunch ( _Bool isLong, u_char id, __uint16_t pnc, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
__uint16_t pnc
punch
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  set485devShort() libutil.c
  __assert13(), memcpy()

Global Function editSrvPwr()

size_t editSrvPwr ( _Bool isLong, u_char id, u_char sw, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
u_char sw
power on/off switch
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13()

Global Function editSrvRst()

size_t editSrvRst ( u_char id, size_t bufLen, u_char buf[bufLen] )
u_char id
dev ID
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13()

Global Function editSrvTrq()

size_t editSrvTrq ( _Bool isLong, u_char id, u_char trq, size_t bufLen, u_char buf[bufLen] )
_Bool isLong
true: edit long-packet data,
false: edit short-packet data with rs485_make_packet
u_char id
dev ID
u_char trq
torque
size_t bufLen
length of buf
u_char buf[bufLen]
edit buf
Prototyped in: libservo.h
Calls: rs485_make_packet() libutil.c
  __assert13()