Cross reference for libservo.c of cxref.

# File libservo.c

## Included Files

- `#include <assert.h>`

- `#include <string.h>`

- `#include "libutil.h"`
  - `#include <sys/time.h>`
  - `#include <sys/uio.h>`
  - `#include <stdbool.h>`
  - `#include "scifTrafMain.h"`
    - `#include "libaccelSensor.h"`
      - `#include <sys/types.h>`
    - `#include "libled.h"`
      - `#include <stdbool.h>`
      - `#include <sys/types.h>`
      - `#include "rs485devs.h"`

- `#include "libservo.h"`
  - `#include <sys/types.h>`
  - `#include <stdbool.h>`

- `#include "rs485devs.h"`

## 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()