Revision cf1f756b source/alld_tlc5947.c
source/alld_tlc5947.c | ||
---|---|---|
32 | 32 |
apalDbgAssert(tlc5947 != NULL); |
33 | 33 |
|
34 | 34 |
// set the output value of the GPIO pin depending on the activation property |
35 |
return apalControlGpioSet(&tlc5947->blank_gpio, blank == TLC5947_LLD_BLANK_ENABLE ? APAL_GPIO_ON : APAL_GPIO_OFF);
|
|
35 |
return apalControlGpioSet(tlc5947->blank_gpio, blank == TLC5947_LLD_BLANK_ENABLE ? APAL_GPIO_ON : APAL_GPIO_OFF); |
|
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
/** |
... | ... | |
48 | 48 |
apalDbgAssert(blank != NULL); |
49 | 49 |
|
50 | 50 |
apalControlGpioState_t gpio_state; |
51 |
apalExitStatus_t status = apalControlGpioGet(&tlc5947->blank_gpio, &gpio_state);
|
|
51 |
apalExitStatus_t status = apalControlGpioGet(tlc5947->blank_gpio, &gpio_state); |
|
52 | 52 |
*blank = gpio_state == APAL_GPIO_ON ? TLC5947_LLD_BLANK_ENABLE : TLC5947_LLD_BLANK_DISABLE; |
53 | 53 |
return status; |
54 | 54 |
} |
... | ... | |
63 | 63 |
{ |
64 | 64 |
apalDbgAssert(tlc5947 != NULL); |
65 | 65 |
|
66 |
apalExitStatus_t status = apalControlGpioSet(&tlc5947->xlat_gpio, APAL_GPIO_ON);
|
|
66 |
apalExitStatus_t status = apalControlGpioSet(tlc5947->xlat_gpio, APAL_GPIO_ON); |
|
67 | 67 |
// The XLAT signal has to be active for at least 30 ns. |
68 | 68 |
// It is assumed that that these function calls satisfy this requirement even without explicit delay. |
69 |
if (apalControlGpioSet(&tlc5947->xlat_gpio, APAL_GPIO_OFF) == APAL_STATUS_OK && status == APAL_STATUS_OK) {
|
|
69 |
if (apalControlGpioSet(tlc5947->xlat_gpio, APAL_GPIO_OFF) == APAL_STATUS_OK && status == APAL_STATUS_OK) { |
|
70 | 70 |
return APAL_STATUS_OK; |
71 | 71 |
} else { |
72 | 72 |
return APAL_STATUS_ERROR; |
Also available in: Unified diff