PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Classes | Macros | Typedefs | Functions
tv.h File Reference
#include <stdint.h>
+ Include dependency graph for tv.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TV_struct
 

Macros

#define TV_BASEBAND_PIN(pin)   ((pin & 0x38) << 1) | (((pin & 4) == 4) ? 0x5 : 0)
 

Typedefs

typedef volatile struct TV_struct TV_t
 

Functions

int TV_start (TV_t *tvptr)
 
void TV_stop (void)
 

Detailed Description

Definition in file tv.h.


Class Documentation

◆ TV_struct

struct TV_struct

TV struct for starting/controlling a TV cog

Definition at line 14 of file tv.h.

+ Collaboration diagram for TV_struct:
Class Members
uint32_t auralcog
uint32_t broadcast
uint32_t colors
uint32_t enable
uint32_t ho
uint32_t ht
uint32_t hx
uint32_t mode
uint32_t pins
uint32_t screen
uint32_t status
uint32_t vo
uint32_t vt
uint32_t vx

Macro Definition Documentation

◆ TV_BASEBAND_PIN

#define TV_BASEBAND_PIN (   pin)    ((pin & 0x38) << 1) | (((pin & 4) == 4) ? 0x5 : 0)

TV_BASEBAND_PIN macro gets tv.pins definition based on pin

Definition at line 35 of file tv.h.

Typedef Documentation

◆ TV_t

typedef volatile struct TV_struct TV_t

TV struct for starting/controlling a TV cog

Function Documentation

◆ TV_start()

int TV_start ( TV_t tvptr)

start a TV cog

Parameters
tvptr- pointer to tv startup array
Returns
zero on failure or non-zero cog number

Definition at line 17 of file tv.c.

◆ TV_stop()

void TV_stop ( void  )

stop previously registered tv cog