TwiceAsNice
2019-02-18
|
#include <nsmsg.h>
Public Member Functions | |
Nsmsg () | |
Nsmsg (NsChannel *channel) | |
int | sendtemp (float temp, bool cooler_on) |
int | senddur (float expo, int framediv, bool dark) |
int | sendzone (int start_y, int lines, int framediv) |
int | sendfan (int speed) |
int | rcvstat (void) |
float | rcvtemp (void) |
int | getRawImgSize () |
int | getRawImgSize (int start_y, int lines, int framediv) |
bool | inquiry (void) |
int | abort (void) |
int | getResp4 () |
const char * | getFirmwareVer () |
Private Member Functions | |
void | calczone (int start_y_offset, int num_lines, int framediv) |
void | settemp (float temp, bool cooler_on) |
void | setdur (float expo, int framediv, bool dark) |
void | setzone (int start_y, int lines, int framediv) |
void | setfan (int speed) |
float | gettemp (void) |
int | sendcmd (const char *name) |
void | hexdump (const char *pre, const void *data, int size) |
Private Attributes | |
short | start_y |
short | lines |
int | imgsz |
float | temp_set |
float | temp_act |
int | curr_status |
int | resp_4 |
char | firmware_ver [25] |
unsigned char | cmd [CMD_SIZE] |
unsigned char | resp [CMD_SIZE+1] |
NsChannel * | chan |
std::mutex | cmdmutex |
Static Private Attributes | |
static const unsigned char | inq [CMD_SIZE] = {0xa5, 0x1, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | sts [CMD_SIZE] = {0xa5, 0x2, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | abt [CMD_SIZE] = {0xa5, 0x4, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | stp [CMD_SIZE] = {0xa5, 0x8, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | gtp [CMD_SIZE] = {0xa5, 0x9, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | fan [CMD_SIZE] = {0xa5, 0xa, 0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
static const unsigned char | inqr_8600 [CMD_SIZE] = {0xA5,1,1,0x80,0,0x4F,0xD8,1,0x26,0,0,0,0,0,0,0} |
static const unsigned char | dur [CMD_SIZE] = {0xa5, 0x3, 0,0,0,0,0xb,0,0,0,0,0,0,0,0,0} |
static const unsigned char | zon [CMD_SIZE] = {0xa5, 0x7, 0,0,0,0, 0,0,0,0, 0x1a,0x82,0,0,7,0} |
Nsmsg::Nsmsg | ( | ) |
|
inline |
int Nsmsg::abort | ( | void | ) |
|
private |
const char * Nsmsg::getFirmwareVer | ( | ) |
int Nsmsg::getRawImgSize | ( | ) |
int Nsmsg::getRawImgSize | ( | int | start_y, |
int | lines, | ||
int | framediv | ||
) |
int Nsmsg::getResp4 | ( | ) |
|
private |
bool Nsmsg::inquiry | ( | void | ) |
int Nsmsg::rcvstat | ( | void | ) |
float Nsmsg::rcvtemp | ( | void | ) |
|
private |
int Nsmsg::senddur | ( | float | expo, |
int | framediv, | ||
bool | dark | ||
) |
int Nsmsg::sendfan | ( | int | speed | ) |
int Nsmsg::sendtemp | ( | float | temp, |
bool | cooler_on | ||
) |
int Nsmsg::sendzone | ( | int | start_y, |
int | lines, | ||
int | framediv | ||
) |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
staticprivate |