Cross reference for libled.c of cxref.

# File libled.c

References Variables: | blank | libled.c
| centCirclMix | libled.c
| checkerMix1 | libled.c
| checkerMix2 | libled.c
| dualDiaMix | libled.c
| invasion | libled.c
| mesuringWorm | libled.c
| ng | libled.c
| ok | libled.c
| ok_ng | libled.c
| ripple | libled.c
| slantStripeMix1 | libled.c
| slantStripeMix2 | libled.c

## Included Files

- `#include <stdio.h>`

- `#include <sys/time.h>`

- `#include <assert.h>`

- `#include <limits.h>`

- `#include <string.h>`

- `#include <strings.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 "servo.h"`
  - `#include "scifTrafMain.h"`

- `#include "rs485.h"`

- `#include "/home/tos/cvs/common/include/trace.h"`

- `#include "scifTrafMain.h"`

## Local Variables

blank
variables, structur declaration

`static const u_char blank[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

slantStripeMix1
`static const u_char slantStripeMix1[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c
| initLedPtn() |

slantStripeMix2
`static u_char slantStripeMix2[sizeofslantStripeMix1]`

Used in: |  | libled.c
| initLedPtn() |

dualDiaMix
`static const u_char dualDiaMix[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

centCirclMix
`static const u_char centCirclMix[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

checkerMix1
`static const u_char checkerMix1[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c
| initLedPtn() |

checkerMix2
`static u_char checkerMix2[sizeofcheckerMix1]`

Used in: |  | libled.c
| initLedPtn() |

ripple
`static const u_char ripple[][(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

invasion
`static const u_char invasion[][sizeofcheckerMix2]`

Used in: |  | libled.c

mesuringWorm
`static const u_char mesuringWorm[][sizeofcheckerMix2]`

Used in: |  | libled.c

ok
`static const u_char ok[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

ng
`static const u_char ng[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

ok_ng
`static const u_char ok_ng[(int)(5*12/(8/LED_PIXEL_DEPTH_BIT))]`

Used in: |  | libled.c

patTbl
`static const u_char* patTbl[NUM_e_ledPattern]`

Used in: | editLedDispFixpat() |

## Global Function editLedDispFixpat()

edit LED display pattern from fix pattern table to reqB.

`size_t editLedDispFixpat ( enum e_LedBoardID ledId, enum e_ledPattern pat, u_char* buf, size_t bLen )`

`enum e_LedBoardID ledId`
  LED board device ID
`enum e_ledPattern pat`
  pattern ID
`u_char* buf`
  packet data buffer
`size_t bLen`
  reqB max length(checking buffer-overflow

Prototyped in: | libled.h
Calls: | editLedDispReq() | libled.c
References Variables: | patTbl | libled.c

## Global Function editLedDispReq()

edit LED display pattern to reqB.

`size_t editLedDispReq ( enum e_LedBoardID ledId, const u_char* pat, u_char* buf, size_t bLen )`

`enum e_LedBoardID ledId`
  LED board device ID
`const u_char* pat`
  pattern table(must 15 byte)
`u_char* buf`
  packet data buffer
`size_t bLen`
  buf max length(checking buffer-overflow

return: edit packet size.

Prototyped in: | libled.h
Calls: | rs485_make_packet() | libutil.c
| __assert13(), memcmp(), memcpy()
Called by: | editLedDispFixpat() | libled.c

## Global Function initLedPtn()

functions

`void initLedPtn ( void )`

Prototyped in: | libled.h
Calls: | reversePattern() | libled.c
References Variables: | checkerMix1 | libled.c
| checkerMix2 | libled.c
| slantStripeMix1 | libled.c
| slantStripeMix2 | libled.c

## Global Function ledPixelCheck()

`_Bool ledPixelCheck ( int row, int column )`

Prototyped in: | libled.h
Called by: | ledPset() | libled.c

## Global Function ledPset()

`void ledPset ( int row, int clm, enum e_LedColorCode col, u_char* pat )`

Prototyped in: | libled.h
Calls: | ledPixelCheck() | libled.c
| __assert13()
Called by: | ledVertLineDisp() | libled.c

## Global Function ledVertLineDisp()

`void ledVertLineDisp ( int clm, enum e_LedColorCode col, u_char* pat )`

Prototyped in: | libled.h
Calls: | ledPset() | libled.c
| memset()

## Local Function reversePattern()

`static void reversePattern ( u_char* dst, const u_char* src, size_t size )`

Prototyped in: | libled.c
Called by: | initLedPtn() | libled.c