mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
add ddb_mci_cmd_link_simple()
This commit is contained in:
parent
3eaae81e6a
commit
6c2bbbe5b8
@ -152,6 +152,17 @@ int ddb_mci_cmd_link(struct ddb_link *link,
|
|||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ddb_mci_cmd_link_simple(struct ddb_link *link, u8 command, u8 demod, u8 value)
|
||||||
|
{
|
||||||
|
struct mci_command cmd;
|
||||||
|
|
||||||
|
memset(&cmd, 0, sizeof(cmd));
|
||||||
|
cmd.command = command;
|
||||||
|
cmd.demod = demod;
|
||||||
|
cmd.params8[0] = value;
|
||||||
|
return ddb_mci_cmd_link(link, &cmd, 0);
|
||||||
|
}
|
||||||
|
|
||||||
static void mci_handler(void *priv)
|
static void mci_handler(void *priv)
|
||||||
{
|
{
|
||||||
struct ddb_link *link = (struct ddb_link *) priv;
|
struct ddb_link *link = (struct ddb_link *) priv;
|
||||||
|
@ -993,6 +993,7 @@ struct mci_cfg {
|
|||||||
|
|
||||||
int ddb_mci_cmd(struct mci *state, struct mci_command *command, struct mci_result *result);
|
int ddb_mci_cmd(struct mci *state, struct mci_command *command, struct mci_result *result);
|
||||||
int ddb_mci_cmd_link(struct ddb_link *link, struct mci_command *command, struct mci_result *result);
|
int ddb_mci_cmd_link(struct ddb_link *link, struct mci_command *command, struct mci_result *result);
|
||||||
|
int ddb_mci_cmd_link_simple(struct ddb_link *link, u8 command, u8 demod, u8 value);
|
||||||
int ddb_mci_get_status(struct mci *mci, struct mci_result *res);
|
int ddb_mci_get_status(struct mci *mci, struct mci_result *res);
|
||||||
int ddb_mci_get_snr(struct dvb_frontend *fe);
|
int ddb_mci_get_snr(struct dvb_frontend *fe);
|
||||||
int ddb_mci_get_info(struct mci *mci);
|
int ddb_mci_get_info(struct mci *mci);
|
||||||
|
Loading…
Reference in New Issue
Block a user