Go to the source code of this file.
Data Structures | |
| struct | twa2835_status |
| This structure holds the status for a video input channel. More... | |
| struct | twa2835_motion_substatus |
| Event status for each for each channel from one A/B mux. More... | |
| struct | twa2835_motion_status |
| Event status for all the TWA2835 inputs. More... | |
| struct | twa2835_pixel |
| Pixel to be displayed on the monitor/record path oof the TWA2835. More... | |
Defines | |
| #define | _TWA2835_H_ 1 |
Functions | |
| int | twa2835_read_reg (void *twa, int addr) |
| reads the value of a TWA2835 register | |
| void | twa2835_write_reg (void *twa, int addr, int data) |
| writes to a TWA2835 register | |
| int | twa2835_batch (void *twa, int *batch) |
| executes a batch of operations to the TWA2835 | |
| void | twa2835_reset (void *twa) |
| resets the TWA2835 | |
| unsigned long | twa2835_get_sec (void) |
| returns the number of second elapsed from an arbitrary moment in time | |
| int | twa2835_wait_motion (void *twa, int sec, int *nv, int *md, int *bd, int *nd) |
| waits for an event generated by the TWA2835 | |
| int | twa2835_init (void *twa, int isNtsc) |
| initialize the hardware associated with the given instance | |
| int | twa2835_release (void *twa) |
| releases a TWA2835 instance | |
| int | twa2835_output_mode (void *twa, int tv_x_rec, int tv_x_ovl, int tv_y_rec, int tv_y_ovl, int enc_rec, int enc_ovl) |
| setup video output mode | |
| int | twa2835_set_palette (void *twa, int ind, int R, int G, int B) |
| set the RGB valuess for an entry in the palette | |
| int | twa2835_mon_full (void *twa, int ch) |
| display a channel full-screen on the monitor path | |
| int | twa2835_mon_quad (void *twa) |
| display all the 4 channels in the monitor path | |
| int | twa2835_mon_freeze_ch (void *twa, int ch) |
| freezes a channel on the monitor path | |
| int | twa2835_mon_continue_ch (void *twa, int ch) |
| puts a channel in continuos mode on the monitor path | |
| int | twa2835_mon_strobe_ch (void *twa, int ch) |
| updates a channel when freezed on the monitor path | |
| int | twa2835_mon_switch_mode_ch (void *twa, int ch) |
| puts channel in switched mode on the monitor path | |
| int | twa2835_mon_switch_trigger (void *twa, int ch) |
| changes a channel in switched mode to the given channel on the monitor path | |
| int | twa2835_mon_freeze (void *twa) |
| freezes the monitor path | |
| int | twa2835_mon_continue (void *twa) |
| puts the monitor path in continuos mode | |
| int | twa2835_mon_pb_enable (void *twa, int ch, int ena) |
| enables/disables playback on a channel | |
| int | twa2835_mon_show_motion_box (void *twa, int box, int enable, int ab, int ch) |
| shows where a motion has been detected by coloring user boxes | |
| int | twa2835_mon_write_bitmap (void *twa, int x, int y, int w, int h, int pn, struct twa2835_pixel *p) |
| displays a bitmap on the monitor path | |
| int | twa2835_mon_bitmap_enable (void *twa, int ena, int pn) |
| enable display of bitmap on monitor path | |
| int | twa2835_mon_pb_id (void *twa, int auto_vb_detect_ena, int vbi_ena, int vbi_code_ena, int vbi_ric_ena) |
| enables gathering playback information from ebedded channel id | |
| int | twa2835_mon_pb_crop (void *twa, int ch, int ena) |
| crops playback area so embedded channel id information are not visible | |
| int | twa2835_mon_ch_attr (void *twa, int ch, int blank, int hmirror, int vmirror, int blink) |
| sets the attribute for a channel on the monitor path | |
| int | twa2835_mon_blink_on_loss (void *twa, int ena) |
| enables blinking of channel boundary if video-loss | |
| int | twa2835_mon_zoom (void *twa, int ena, int x, int y) |
| enables 2x zoom on the monitor path | |
| int | twa2835_mon_filter (void *twa, int mode, int slope, int thr) |
| sets the parameter of the anti-nois filter on the monitor path | |
| int | twa2835_mon_cursor (void *twa, int large, int filled, int blink, int x, int y) |
| shows the cursor on the monitor path | |
| int | twa2835_rec_full (void *twa, int ch) |
| a channel full-screen on the record path | |
| int | twa2835_rec_quad (void *twa) |
| display all the 4 channels in the record path | |
| int | twa2835_rec_write_bitmap (void *twa, int x, int y, int w, int h, struct twa2835_pixel *p) |
| displays a bitmap on the record path | |
| int | twa2835_rec_bitmap_enable (void *twa, int ena) |
| enable display of bitmap on the record path | |
| int | twa2835_rec_id_enable (void *twa, int vis_ena, int vis_auto_ena, int vis_auto_rpt_ena, int vis_det_ena, int vis_user_ena, int vis_code_ena, int vis_ric_ena) |
| enable the outputing of channel id information on the record path | |
| int | twa2835_rec_ch_attr (void *twa, int ch, int blank, int hmirror, int vmirror, int blink) |
| sets the attribute for a channel on the record path | |
| int | twa2835_rec_mode (void *twa, int frame, int dvr) |
| sets the recording mode | |
| int | twa2835_rec_freeze_ch (void *twa, int ch) |
| freezes a channel on the record path | |
| int | twa2835_rec_continue_ch (void *twa, int ch) |
| puts a channel in continuos mode on the record path | |
| int | twa2835_rec_strobe_ch (void *twa, int ch) |
| updates a channel when freezed on the record path | |
| int | twa2835_rec_switch_mode (void *twa, int ch, int period, int ch_len, int *ch_list) |
| puts channel in switched mode on the record path | |
| int | twa2835_rec_switch_trigger (void *twa, int ch) |
| changes a channel in switched mode to the given channel on the record path | |
| int | twa2835_rec_freeze (void *twa) |
| freezes the record path | |
| int | twa2835_rec_continue (void *twa) |
| puts the record path in continuos mode | |
| int | twa2835_brightness (void *twa, int ch, int v) |
| adjust brightness on given input channel | |
| int | twa2835_contrast (void *twa, int ch, int v) |
| adjust contrast on given input channel | |
| int | twa2835_hue (void *twa, int ch, int v) |
| adjust hue on given input channel | |
| int | twa2835_saturation (void *twa, int ch, int v) |
| adjust saturation on given input channel | |
| int | twa2835_get_status (void *twa, int ch, struct twa2835_status *s) |
| returns status for an input channel | |
| int | twa2835_ch_ab (void *twa, int ch, int ab) |
| switches between A and B input for each channel | |
| int | twa2835_get_motion_status (void *twa, struct twa2835_motion_status *s) |
| returns the motion detection engine status | |
| int | twa2835_enairq (void *twa, int nv, int md, int bd, int nd) |
| sets which events will trigger an interrupt from the TWA2835 | |
| int | twa2835_get_irq_status (void *twa, int *nv, int *md, int *bd, int *nd) |
| returns the status of various detection events that may have triggered an interrupt | |
| int | twa2835_set_motion_par (void *twa, int ch, int disable, int md_reffld, int bd_celsens, int bd_lvsens, int nd_lvsens, int nd_tmpsens, int md_fld, int md_align, int md_celsens, int md_dual_ena, int md_lvsens, int md_speed, int md_tmpsens, int md_spsens, int *md_mask) |
| sets the motion detection parameters | |
| int | twa2835_audio_passtru (void *twa, int *in_gain, int *mute, int out_gain) |
| sets the audio part in simple pass through mode | |
| int twa2835_audio_passtru | ( | void * | twa, | |
| int * | in_gain, | |||
| int * | mute, | |||
| int | out_gain | |||
| ) |
sets the audio part in simple pass through mode
| twa | pointer to the TWA2835 instance | |
| in_gain | gain for 4 input channel (0-15) | |
| mute | can mute each of the input channel if 1 | |
| out_gain | output gain (0-15) |
| int twa2835_batch | ( | void * | twa, | |
| int * | batch | |||
| ) |
executes a batch of operations to the TWA2835
| twa | pointer to the TWA2835 instance | |
| batch | batch to execute |
| int twa2835_brightness | ( | void * | twa, | |
| int | ch, | |||
| int | v | |||
| ) |
adjust brightness on given input channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| v | parameter value (0-255) |
| int twa2835_ch_ab | ( | void * | twa, | |
| int | ch, | |||
| int | ab | |||
| ) |
switches between A and B input for each channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| ab | if zero selects A input, if 1 B |
| int twa2835_contrast | ( | void * | twa, | |
| int | ch, | |||
| int | v | |||
| ) |
adjust contrast on given input channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| v | parameter value (0-255) |
| int twa2835_enairq | ( | void * | twa, | |
| int | nv, | |||
| int | md, | |||
| int | bd, | |||
| int | nd | |||
| ) |
sets which events will trigger an interrupt from the TWA2835
| twa | pointer to the TWA2835 instance | |
| nv | sets which channels will triegger a video loss event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| md | sets which channels will triegger a motion detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| bd | sets which channels will triegger a blind detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| nd | Sets which channels will triegger a night detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B |
| int twa2835_get_irq_status | ( | void * | twa, | |
| int * | nv, | |||
| int * | md, | |||
| int * | bd, | |||
| int * | nd | |||
| ) |
returns the status of various detection events that may have triggered an interrupt
| twa | pointer to the TWA2835 instance | |
| nv | returns which channels triggered a video loss event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| md | returns which channels trieggered a motion detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| bd | returns which channels trieggered a blind detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| nd | returns which channels trieggered a night detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B |
| int twa2835_get_motion_status | ( | void * | twa, | |
| struct twa2835_motion_status * | s | |||
| ) |
returns the motion detection engine status
| twa | pointer to the TWA2835 instance | |
| s | outputs the status of various modules in the motion detection engine |
| unsigned long twa2835_get_sec | ( | void | ) |
returns the number of second elapsed from an arbitrary moment in time
| int twa2835_get_status | ( | void * | twa, | |
| int | ch, | |||
| struct twa2835_status * | s | |||
| ) |
returns status for an input channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| s | struc sescribing status of given input channel |
| int twa2835_hue | ( | void * | twa, | |
| int | ch, | |||
| int | v | |||
| ) |
adjust hue on given input channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| v | parameter value (0-255) |
| int twa2835_init | ( | void * | twa, | |
| int | isNtsc | |||
| ) |
initialize the hardware associated with the given instance
| twa | pointer to the TWA2835 instance | |
| isNtsc | non-zero to set NTSC mode |
| int twa2835_mon_bitmap_enable | ( | void * | twa, | |
| int | ena, | |||
| int | pn | |||
| ) |
enable display of bitmap on monitor path
| twa | pointer to the TWA2835 instance | |
| ena | if non-zero do enable | |
| pn | video page to use (0-5) |
| int twa2835_mon_blink_on_loss | ( | void * | twa, | |
| int | ena | |||
| ) |
enables blinking of channel boundary if video-loss
| twa | pointer to the TWA2835 instance | |
| ena | enable function if non-zero |
| int twa2835_mon_ch_attr | ( | void * | twa, | |
| int | ch, | |||
| int | blank, | |||
| int | hmirror, | |||
| int | vmirror, | |||
| int | blink | |||
| ) |
sets the attribute for a channel on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| blank | blanks channel if non-zero | |
| hmirror | horizontal mirroring of channel if non-zero | |
| vmirror | vertical mirroring of channel if non-zero | |
| blink | blinks channel boundary channel if non-zero |
| int twa2835_mon_continue | ( | void * | twa | ) |
puts the monitor path in continuos mode
| twa | pointer to the TWA2835 instance |
| int twa2835_mon_continue_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
puts a channel in continuos mode on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_cursor | ( | void * | twa, | |
| int | large, | |||
| int | filled, | |||
| int | blink, | |||
| int | x, | |||
| int | y | |||
| ) |
shows the cursor on the monitor path
| twa | pointer to the TWA2835 instance | |
| large | non-zero for large cursor | |
| filled | non-zero for filled cursor | |
| blink | non-zero for blinking cursor | |
| x | x coordintate, if -1 turns off the cursor | |
| y | y coordintate, if -1 turns off the cursor |
| int twa2835_mon_filter | ( | void * | twa, | |
| int | mode, | |||
| int | slope, | |||
| int | thr | |||
| ) |
sets the parameter of the anti-nois filter on the monitor path
| twa | pointer to the TWA2835 instance | |
| mode | adaptive (0) or median (1) mode | |
| slope | gradient of filter (0-3) | |
| thr | threshold of filter (0-31) |
| int twa2835_mon_freeze | ( | void * | twa | ) |
freezes the monitor path
| twa | pointer to the TWA2835 instance |
| int twa2835_mon_freeze_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
freezes a channel on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_full | ( | void * | twa, | |
| int | ch | |||
| ) |
display a channel full-screen on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_pb_crop | ( | void * | twa, | |
| int | ch, | |||
| int | ena | |||
| ) |
crops playback area so embedded channel id information are not visible
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| ena | if non-zero do enable |
| int twa2835_mon_pb_enable | ( | void * | twa, | |
| int | ch, | |||
| int | ena | |||
| ) |
enables/disables playback on a channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| ena | non-zero to enable |
| int twa2835_mon_pb_id | ( | void * | twa, | |
| int | auto_vb_detect_ena, | |||
| int | vbi_ena, | |||
| int | vbi_code_ena, | |||
| int | vbi_ric_ena | |||
| ) |
enables gathering playback information from ebedded channel id
| twa | pointer to the TWA2835 instance | |
| auto_vb_detect_ena | enable channel id auto detection | |
| vbi_ena | enable analog chanel id | |
| vbi_code_ena | enable digital channel id | |
| vbi_ric_ena | enable run-time clock from channel id |
| int twa2835_mon_quad | ( | void * | twa | ) |
display all the 4 channels in the monitor path
| twa | pointer to the TWA2835 instance |
| int twa2835_mon_show_motion_box | ( | void * | twa, | |
| int | box, | |||
| int | enable, | |||
| int | ab, | |||
| int | ch | |||
| ) |
shows where a motion has been detected by coloring user boxes
| twa | pointer to the TWA2835 instance | |
| box | user box to use | |
| enable | non-zero to enable | |
| ab | input to use from AB shitch (0=A, 1=B) | |
| ch | channel number (0-3) |
| int twa2835_mon_strobe_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
updates a channel when freezed on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_switch_mode_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
puts channel in switched mode on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_switch_trigger | ( | void * | twa, | |
| int | ch | |||
| ) |
changes a channel in switched mode to the given channel on the monitor path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_mon_write_bitmap | ( | void * | twa, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | pn, | |||
| struct twa2835_pixel * | p | |||
| ) |
displays a bitmap on the monitor path
| twa | pointer to the TWA2835 instance | |
| x | x coordinate (0-712) multiple of 8 | |
| y | y coordinate (0-232/280) multiple of 8 | |
| w | image width (8-720) multiple of 8 | |
| h | image height (0-240/288) multiple of 8 | |
| pn | which video page to write (0-5) | |
| p | bitmap bits (w*h pixels) |
| int twa2835_mon_zoom | ( | void * | twa, | |
| int | ena, | |||
| int | x, | |||
| int | y | |||
| ) |
enables 2x zoom on the monitor path
| twa | pointer to the TWA2835 instance | |
| ena | enable function if non-zero | |
| x | x coordinate of the top-left corner of zoom region | |
| y | y coordinate of the top-left corner of zoom region |
| int twa2835_output_mode | ( | void * | twa, | |
| int | tv_x_rec, | |||
| int | tv_x_ovl, | |||
| int | tv_y_rec, | |||
| int | tv_y_ovl, | |||
| int | enc_rec, | |||
| int | enc_ovl | |||
| ) |
setup video output mode
| twa | pointer to the TWA2835 instance | |
| tv_x_rec | enables if non-zero record path (instead of monitor) on analog X output | |
| tv_x_ovl | enables graphic overlay on analog X output | |
| tv_y_rec | enables if non-zero record path (instead of monitor) on analog Y output | |
| tv_y_ovl | enables graphic overlay on analog Y output | |
| enc_rec | enables if non-zero record path (instead of monitor) on digital (ADV212 connected) output | |
| enc_ovl | enables graphic overlay on digital (ADV212 connected) output |
| int twa2835_read_reg | ( | void * | twa, | |
| int | addr | |||
| ) |
reads the value of a TWA2835 register
| twa | pointer to the TWA2835 instance | |
| addr | address of register to read |
| int twa2835_rec_bitmap_enable | ( | void * | twa, | |
| int | ena | |||
| ) |
enable display of bitmap on the record path
| twa | pointer to the TWA2835 instance | |
| ena | if non-zero do enable |
| int twa2835_rec_ch_attr | ( | void * | twa, | |
| int | ch, | |||
| int | blank, | |||
| int | hmirror, | |||
| int | vmirror, | |||
| int | blink | |||
| ) |
sets the attribute for a channel on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| blank | blanks channel if non-zero | |
| hmirror | horizontal mirroring of channel if non-zero | |
| vmirror | vertical mirroring of channel if non-zero | |
| blink | blinks channel boundary channel if non-zero |
| int twa2835_rec_continue | ( | void * | twa | ) |
puts the record path in continuos mode
| twa | pointer to the TWA2835 instance |
| int twa2835_rec_continue_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
puts a channel in continuos mode on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_rec_freeze | ( | void * | twa | ) |
freezes the record path
| twa | pointer to the TWA2835 instance |
| int twa2835_rec_freeze_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
freezes a channel on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_rec_full | ( | void * | twa, | |
| int | ch | |||
| ) |
a channel full-screen on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_rec_id_enable | ( | void * | twa, | |
| int | vis_ena, | |||
| int | vis_auto_ena, | |||
| int | vis_auto_rpt_ena, | |||
| int | vis_det_ena, | |||
| int | vis_user_ena, | |||
| int | vis_code_ena, | |||
| int | vis_ric_ena | |||
| ) |
enable the outputing of channel id information on the record path
| twa | pointer to the TWA2835 instance | |
| vis_ena | analog channel id | |
| vis_auto_ena | automatic channel id | |
| vis_auto_rpt_ena | channel id repetition | |
| vis_det_ena | detection channel id | |
| vis_user_ena | user channel id | |
| vis_code_ena | digital channel id | |
| vis_ric_ena | run-time clock |
| int twa2835_rec_mode | ( | void * | twa, | |
| int | frame, | |||
| int | dvr | |||
| ) |
sets the recording mode
| twa | pointer to the TWA2835 instance | |
| frame | if non-zero enables frame mode | |
| dvr | if non-zero enables DVR mode |
| int twa2835_rec_quad | ( | void * | twa | ) |
display all the 4 channels in the record path
| twa | pointer to the TWA2835 instance |
| int twa2835_rec_strobe_ch | ( | void * | twa, | |
| int | ch | |||
| ) |
updates a channel when freezed on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_rec_switch_mode | ( | void * | twa, | |
| int | ch, | |||
| int | period, | |||
| int | ch_len, | |||
| int * | ch_list | |||
| ) |
puts channel in switched mode on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| period | (in number of fields) to wait befor hopping to the next channel | |
| ch_len | lenght of the list of channel to be switched | |
| ch_list | array with channel number to be displayed in sequence |
| int twa2835_rec_switch_trigger | ( | void * | twa, | |
| int | ch | |||
| ) |
changes a channel in switched mode to the given channel on the record path
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) |
| int twa2835_rec_write_bitmap | ( | void * | twa, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| struct twa2835_pixel * | p | |||
| ) |
displays a bitmap on the record path
| twa | pointer to the TWA2835 instance | |
| x | x coordinate (0-712) multiple of 8 | |
| y | y coordinate (0-232/280) multiple of 8 | |
| w | image width (8-720) multiple of 8 | |
| h | image height (0-240/288) multiple of 8 | |
| p | bitmap bits (w*h pixels) |
| int twa2835_release | ( | void * | twa | ) |
releases a TWA2835 instance
| twa | pointer to the TWA2835 instance |
| void twa2835_reset | ( | void * | twa | ) |
resets the TWA2835
| twa | pointer to the TWA2835 instance |
| int twa2835_saturation | ( | void * | twa, | |
| int | ch, | |||
| int | v | |||
| ) |
adjust saturation on given input channel
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| v | parameter value (0-255) |
| int twa2835_set_motion_par | ( | void * | twa, | |
| int | ch, | |||
| int | disable, | |||
| int | md_reffld, | |||
| int | bd_celsens, | |||
| int | bd_lvsens, | |||
| int | nd_lvsens, | |||
| int | nd_tmpsens, | |||
| int | md_fld, | |||
| int | md_align, | |||
| int | md_celsens, | |||
| int | md_dual_ena, | |||
| int | md_lvsens, | |||
| int | md_speed, | |||
| int | md_tmpsens, | |||
| int | md_spsens, | |||
| int * | md_mask | |||
| ) |
sets the motion detection parameters
| twa | pointer to the TWA2835 instance | |
| ch | channel number (0-3) | |
| disable | if 1 disables channel | |
| md_reffld | controls the updating time of reference field for motion detection (0 every frame, 1 according to md_speed) | |
| bd_celsens | the threshold of cell for blind detection (0-3) | |
| bd_lvsens | the threshold of level for blind detection (0-15) | |
| nd_lvsens | the threshold of level for night detection (0-15) | |
| nd_tmpsens | the threshold of temporal sensitivity for night detection (0-15) | |
| md_fld | 0 = odd field, 1 = even field 2 = any 3 = both | |
| md_align | horizontal starting position for motion detection (0-15) | |
| md_celsens | the threshold of sub-cell number for motion detection (0-3) | |
| md_dual_ena | if 1 enable the non-realtime motion detection mode (8 channel mode) | |
| md_lvsens | the level sensitivity of motion detector (0-31) | |
| md_speed | velocity of motion detector (0-63) | |
| md_tmpsens | temporal sensitivity of motion detecto (0-15) | |
| md_spsens | spatial sensitivity of motion detecto (0-15) | |
| md_mask | an array of 12 ints. Every int rapresents a row. Every bit in an int corresponds to a cell. If bit is one that cell is ignored for motion detection. |
| int twa2835_set_palette | ( | void * | twa, | |
| int | ind, | |||
| int | R, | |||
| int | G, | |||
| int | B | |||
| ) |
set the RGB valuess for an entry in the palette
| twa | pointer to the TWA2835 instance | |
| ind | palette index | |
| R | red value (0-255) | |
| G | green value (0-255) | |
| B | blue value (0-255) |
| int twa2835_wait_motion | ( | void * | twa, | |
| int | sec, | |||
| int * | nv, | |||
| int * | md, | |||
| int * | bd, | |||
| int * | nd | |||
| ) |
waits for an event generated by the TWA2835
| twa | pointer to the TWA2835 instance | |
| sec | number of seconds to wait before returning even if no events | |
| nv | returns the status of no-video event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| md | returns the status of motion detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| bd | returns the status of blind detection event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B | |
| nd | returns the status of night detect event. Bits 0-3 are channels 0-3 on mux A, bits 4-7 are channels 4-7 on mux B |
| void twa2835_write_reg | ( | void * | twa, | |
| int | addr, | |||
| int | data | |||
| ) |
writes to a TWA2835 register
| twa | pointer to the TWA2835 instance | |
| addr | address of register to write | |
| data | value to write |
1.5.1